diff --git a/extension.js b/extension.js index 30d564e..af07d2a 100644 --- a/extension.js +++ b/extension.js @@ -108,14 +108,15 @@ InvertWindow.prototype = { let invert_window; function init() { - invert_window = new InvertWindow(); } function enable() { + invert_window = new InvertWindow(); invert_window.enable(); } function disable() { invert_window.disable(); + invert_window = null; }