mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Treat missing config as an empty object
This commit is contained in:
parent
5c5116db97
commit
7c86998342
1 changed files with 1 additions and 1 deletions
|
@ -1123,7 +1123,7 @@ export async function getAsync(
|
||||||
browserconfig = await browser.storage.sync.get(CONFIGNAME)
|
browserconfig = await browser.storage.sync.get(CONFIGNAME)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
USERCONFIG = browserconfig[CONFIGNAME]
|
USERCONFIG = browserconfig[CONFIGNAME] || o({})
|
||||||
|
|
||||||
return get(target_typed, ...target)
|
return get(target_typed, ...target)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue