From f07e5304460143e8acd2341bfa3ae0dc445e990c Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 21 Oct 2018 16:03:50 +0200 Subject: [PATCH] Bug Startpage not loaded --- src/js/background.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/js/background.js b/src/js/background.js index 388fb15..1e28963 100644 --- a/src/js/background.js +++ b/src/js/background.js @@ -13,6 +13,18 @@ app.init = function(){ // Init module app.Bookmarks.initListener(); 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); + }); };