Update js/main.js

This commit is contained in:
2025-10-27 16:37:04 +01:00
parent f415d09820
commit 1615cd4f8a

View File

@@ -56,9 +56,7 @@ 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)