fix: default prefs loading bug

This commit is contained in:
xiangyu 2023-01-28 14:40:46 +08:00
parent 7b9e139cb8
commit 576c08b5cf

2
addon/bootstrap.js vendored
View File

@ -80,10 +80,8 @@ async function startup({ id, version, resourceURI, rootURI }, reason) {
["locale", "__addonRef__", "zh-CN", rootURI + "chrome/locale/zh-CN/"], ["locale", "__addonRef__", "zh-CN", rootURI + "chrome/locale/zh-CN/"],
]); ]);
} else { } else {
if (reason == ADDON_INSTALL || reason == ADDON_ENABLE) {
setDefaultPrefs(rootURI); setDefaultPrefs(rootURI);
} }
}
// Global variables for plugin code // Global variables for plugin code
const ctx = { const ctx = {