Fixed bug where on settings import the extension would no longer function
This commit is contained in:
parent
8df59a5b6e
commit
dc71fa04a0
|
@ -87,9 +87,8 @@ importSettingsElement.addEventListener("change", () => {
|
|||
})
|
||||
})
|
||||
)
|
||||
} else if ("version" in data) {
|
||||
browser.storage.local.clear(() => browser.storage.local.set({ options: data }, () => location.reload()))
|
||||
} else {
|
||||
} else if ("version" in data) browser.storage.local.set({ options: data }, () => location.reload())
|
||||
else {
|
||||
console.log("incompatible settings")
|
||||
importError()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue