Update js/main.js

This commit is contained in:
2025-10-27 16:28:50 +01:00
parent d503cb65e3
commit f415d09820

View File

@@ -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)