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()
|
let options = await utils.getOptions()
|
||||||
for (const service in config.services) {
|
for (const service in config.services) {
|
||||||
if (!options[service]) options[service] = {}
|
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) {
|
for (const defaultOption in config.services[service].options) {
|
||||||
if (options[service][defaultOption] === undefined) {
|
if (options[service][defaultOption] === undefined) {
|
||||||
options[service][defaultOption] = config.services[service].options[defaultOption]
|
options[service][defaultOption] = config.services[service].options[defaultOption]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "__MSG_extensionName__",
|
"name": "__MSG_extensionName__",
|
||||||
"description": "__MSG_extensionDescription__",
|
"description": "__MSG_extensionDescription__",
|
||||||
"version": "2.6.0",
|
"version": "2.6.1",
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"browser_specific_settings": {
|
"browser_specific_settings": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user