From 14ed1f4dd6808caf97ae805d4cbddf847608af2f Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 21 Oct 2018 02:01:02 +0200 Subject: [PATCH] Patch Quick Dial as start page --- src/js/dial.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/js/dial.js b/src/js/dial.js index fed6ca6..095a1d9 100644 --- a/src/js/dial.js +++ b/src/js/dial.js @@ -7,9 +7,12 @@ var dial = { }; document.addEventListener("DOMContentLoaded", function(event) { - document.body.style.backgroundColor = utils.getBackgroundColor(); + document.body.style.backgroundColor = utils.getBackgroundColor(); app.init(); dial.init(); + window.setTimeout(function(){ + if(! app.settings) app.init(); + }, 500); }); window.addEventListener('resize', function(){ @@ -102,7 +105,7 @@ app.Messages.getSettings = function(callback){ } else { browser.runtime.sendMessage({ cmd: app.Messages.Commands.getSettings }).then(callback, callback); } - }); + }, callback); }; app.Messages.getNode = function(path, callback){ browser.runtime.getBackgroundPage().then(function(page){