cancel the pending enforce on unload
This commit is contained in:
@@ -17,6 +17,9 @@ module.exports = class RibbonClasp extends Plugin {
|
||||
|
||||
onunload() {
|
||||
this.observer?.disconnect();
|
||||
// disconnect doesn't stop an already-scheduled call
|
||||
this.debouncedEnforce?.cancel();
|
||||
|
||||
const ribbon = this.getRibbon();
|
||||
if (ribbon && this.originalOnChange) {
|
||||
ribbon.onChange = this.originalOnChange;
|
||||
|
||||
Reference in New Issue
Block a user