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:
parent
7ccd9be787
commit
14ed1f4dd6
@ -7,9 +7,12 @@ var dial = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", function(event) {
|
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){
|
||||||
|
Loading…
Reference in New Issue
Block a user