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) {
|
} else if ("version" in data) browser.storage.local.set({ options: data }, () => location.reload())
|
||||||
browser.storage.local.clear(() => browser.storage.local.set({ options: data }, () => location.reload()))
|
else {
|
||||||
} else {
|
|
||||||
console.log("incompatible settings")
|
console.log("incompatible settings")
|
||||||
importError()
|
importError()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user