Fix #3050: don't synchronise custom themes

This commit is contained in:
Oliver Blanthorn 2021-01-27 10:30:02 +01:00
parent 071b6bd6b3
commit 82588a91b0
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -1343,9 +1343,13 @@ export async function getAsync(
/*
* Replaces the configuration in your sync storage with your current configuration. Does not merge: it overwrites.
*
* Does not synchronise custom themes due to storage constraints.
*/
export async function push() {
return browser.storage.sync.set(await browser.storage.local.get(CONFIGNAME))
const local_conf = await browser.storage.local.get(CONFIGNAME)
delete local_conf[CONFIGNAME].customthemes
return browser.storage.sync.set(local_conf)
}
/*