1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Added default values for mobile

This commit is contained in:
kkapsner 2019-12-02 19:16:32 +01:00
parent 5020e0b070
commit b7ba5c2050
6 changed files with 66 additions and 0 deletions

View file

@ -9,6 +9,7 @@
logging.setPrefix("main script");
const persistentRndStorage = require("./persistentRndStorage");
const notification = require("./notification");
const mobile = require("./mobile");
const registerSettingsContentScript = (function(){
let unregisterSettingsContentScript = function(){};
@ -187,6 +188,13 @@
}
});
}
// mobile default settings
mobile.ifMobile(function(){
return browser.storage.local.get().then(mobile.applyMobileDefaults).catch(function(error){
logging.error("Unable to set mobile default values:", error);
});
});
});
logging.message("end");