diff --git a/js/main.js b/js/main.js index 7559c82..cef3f81 100644 --- a/js/main.js +++ b/js/main.js @@ -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)