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