diff --git a/src/js/background.js b/src/js/background.js index 0361826..a08b943 100644 --- a/src/js/background.js +++ b/src/js/background.js @@ -5,6 +5,9 @@ core.init = function(){ // Init module core.Settings.init(function(){ core.Messages.init(); browser.runtime.sendMessage({ cmd: core.Messages.Commands.settingsChanged }); + browser.browserAction.onClicked.addListener(function(){ + browser.tabs.create({}); + }); core.GridNodes.sync(core.node, core.settings.grid.root, function(){ browser.runtime.sendMessage({ cmd: core.Messages.Commands.gridNodesLoaded }); core.Bookmarks.initListener(); diff --git a/src/manifest.json b/src/manifest.json index 4d7de5a..a153d72 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "Quick Dial", - "version": "0.1.1", + "version": "0.1.1", "author": "MatMoul", "homepage_url": "https://github.com/MatMoul/quickdial-webext", "developer": { @@ -28,6 +28,13 @@ "scripts": ["js/background.js"] }, + "browser_action": { + "default_icon": { + "24": "img/24.png", + "32": "img/32.png" + } + }, + "chrome_url_overrides" : { "newtab": "dial" },