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:
parent
5020e0b070
commit
b7ba5c2050
6 changed files with 66 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue