Fixed crashing bc of a removed frontend https://github.com/libredirect/browser_extension/issues/713
This commit is contained in:
parent
a477879c35
commit
0aaf49eef1
@ -789,6 +789,12 @@ function processUpdate() {
|
||||
let options = await utils.getOptions()
|
||||
for (const service in config.services) {
|
||||
if (!options[service]) options[service] = {}
|
||||
|
||||
if (!(options[service].frontend in config.services[service].frontends)) {
|
||||
options[service] = config.services[service].options
|
||||
delete options[options[service].frontend]
|
||||
}
|
||||
|
||||
for (const defaultOption in config.services[service].options) {
|
||||
if (options[service][defaultOption] === undefined) {
|
||||
options[service][defaultOption] = config.services[service].options[defaultOption]
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "__MSG_extensionName__",
|
||||
"description": "__MSG_extensionDescription__",
|
||||
"version": "2.6.0",
|
||||
"version": "2.6.1",
|
||||
"manifest_version": 2,
|
||||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user