Skip to content

Commit

Permalink
fix: always init the add-on
Browse files Browse the repository at this point in the history
  • Loading branch information
Istador committed Sep 18, 2018
1 parent 1c6dac3 commit 5b4f4b9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,8 @@ module.exports.onUnload = (reason) => {

// initialize extension
module.exports.main = (options, callback) => {
if (options.loadReason == "install" || options.loadReason == "startup") {
pref.follow()
pref.onchange('searchbar.icon', setIcon)
newWindow.register()
forEachWindow(init)
}
pref.follow()
pref.onchange('searchbar.icon', setIcon)
newWindow.register()
forEachWindow(init)
}

0 comments on commit 5b4f4b9

Please sign in to comment.