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