1
Fork 0

Apply default settings before existing ones.

This commit is contained in:
Bauke 2022-02-24 13:55:47 +01:00
parent 1493b2c96b
commit 51db617b77
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ export default class Settings {
const sync = (await browser.storage.sync.get(
defaultsObject,
)) as typeof defaultsObject;
settings.data = sync.data;
settings.features = sync.features;
settings.data = {...settings.data, ...sync.data};
settings.features = {...settings.features, ...sync.features};
return settings;
}