1
0
mirror of https://github.com/MatMoul/quickdial-webext.git synced 2024-12-23 15:36:12 +00:00

Patch Quick Dial as start page

This commit is contained in:
MatMoul 2018-10-21 02:01:02 +02:00
parent 7ccd9be787
commit 14ed1f4dd6

View File

@ -10,6 +10,9 @@ document.addEventListener("DOMContentLoaded", function(event) {
document.body.style.backgroundColor = utils.getBackgroundColor(); document.body.style.backgroundColor = utils.getBackgroundColor();
app.init(); app.init();
dial.init(); dial.init();
window.setTimeout(function(){
if(! app.settings) app.init();
}, 500);
}); });
window.addEventListener('resize', function(){ window.addEventListener('resize', function(){
@ -102,7 +105,7 @@ app.Messages.getSettings = function(callback){
} else { } else {
browser.runtime.sendMessage({ cmd: app.Messages.Commands.getSettings }).then(callback, callback); browser.runtime.sendMessage({ cmd: app.Messages.Commands.getSettings }).then(callback, callback);
} }
}); }, callback);
}; };
app.Messages.getNode = function(path, callback){ app.Messages.getNode = function(path, callback){
browser.runtime.getBackgroundPage().then(function(page){ browser.runtime.getBackgroundPage().then(function(page){