mirror of
https://github.com/MatMoul/quickdial-webext.git
synced 2024-12-23 15:36:12 +00:00
Bug Startpage not loaded
This commit is contained in:
parent
8abd79bc5f
commit
f07e530446
@ -13,6 +13,18 @@ app.init = function(){ // Init module
|
|||||||
app.Bookmarks.initListener();
|
app.Bookmarks.initListener();
|
||||||
app.ContextMenus.initMenu();
|
app.ContextMenus.initMenu();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Start page workaround :
|
||||||
|
setTimeout(function(){
|
||||||
|
browser.tabs.query({}).then( function(tabs) {
|
||||||
|
tabs.forEach(function(itm){
|
||||||
|
if(itm.url=='about:blank'){
|
||||||
|
browser.tabs.update(itm.id, {url: browser.extension.getURL('dial')});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}, 500);
|
||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user