mirror of
https://github.com/MatMoul/quickdial-webext.git
synced 2024-12-23 15:36:12 +00:00
Features: Add toolbar button
This commit is contained in:
parent
7e11b0b7da
commit
30b432d1b8
@ -5,6 +5,9 @@ core.init = function(){ // Init module
|
|||||||
core.Settings.init(function(){
|
core.Settings.init(function(){
|
||||||
core.Messages.init();
|
core.Messages.init();
|
||||||
browser.runtime.sendMessage({ cmd: core.Messages.Commands.settingsChanged });
|
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(){
|
core.GridNodes.sync(core.node, core.settings.grid.root, function(){
|
||||||
browser.runtime.sendMessage({ cmd: core.Messages.Commands.gridNodesLoaded });
|
browser.runtime.sendMessage({ cmd: core.Messages.Commands.gridNodesLoaded });
|
||||||
core.Bookmarks.initListener();
|
core.Bookmarks.initListener();
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Quick Dial",
|
"name": "Quick Dial",
|
||||||
"version": "0.1.1",
|
"version": "0.1.1",
|
||||||
"author": "MatMoul",
|
"author": "MatMoul",
|
||||||
"homepage_url": "https://github.com/MatMoul/quickdial-webext",
|
"homepage_url": "https://github.com/MatMoul/quickdial-webext",
|
||||||
"developer": {
|
"developer": {
|
||||||
@ -28,6 +28,13 @@
|
|||||||
"scripts": ["js/background.js"]
|
"scripts": ["js/background.js"]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"browser_action": {
|
||||||
|
"default_icon": {
|
||||||
|
"24": "img/24.png",
|
||||||
|
"32": "img/32.png"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
"chrome_url_overrides" : {
|
"chrome_url_overrides" : {
|
||||||
"newtab": "dial"
|
"newtab": "dial"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user