correctly unhook colorpicker in usercss#stylus mode
This commit is contained in:
parent
2c82cc3bbc
commit
fc20479ab4
|
@ -64,9 +64,11 @@
|
|||
}
|
||||
|
||||
function unregisterHooks() {
|
||||
const mx = CodeMirror.modeExtensions.css;
|
||||
if (mx && mx.token === colorizeToken) {
|
||||
delete mx.token;
|
||||
for (const name in CodeMirror.modeExtensions) {
|
||||
const mx = CodeMirror.modeExtensions[name];
|
||||
if (mx && mx.token === colorizeToken) {
|
||||
delete mx.token;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user