1
0
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:
MatMoul 2018-10-21 16:03:50 +02:00
parent 8abd79bc5f
commit f07e530446

View File

@ -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);
}); });
}; };