Update js/main.js
This commit is contained in:
@@ -56,7 +56,9 @@ function initBody() {
|
||||
readJSON("config.json");
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof browser === "undefined") {
|
||||
var browser = chrome;
|
||||
}
|
||||
// Read the json file
|
||||
BROWSER.storage.sync.get(result => {
|
||||
Object.keys(result).length == 0 ? readJSON("config.json") : parseAndCreate(result)
|
||||
|
||||
Reference in New Issue
Block a user