Skip to content

Commit

Permalink
Dont initialize extension objects in init, use enable instead
Browse files Browse the repository at this point in the history
  • Loading branch information
maiself committed Feb 19, 2016
1 parent fcd13f6 commit f501b0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit f501b0e

Please sign in to comment.