From f501b0e54d436b13d300b94aa1dbe19927e8460c Mon Sep 17 00:00:00 2001 From: Mai Lavelle Date: Fri, 19 Feb 2016 00:36:17 -0500 Subject: [PATCH] Dont initialize extension objects in init, use enable instead --- extension.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }