Improve docstrings

This commit is contained in:
Oliver Blanthorn 2020-07-30 20:47:29 +01:00
parent de7eb07d08
commit 0630412c6f
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -1276,14 +1276,14 @@ export async function getAsync(
}
/*
* Replaces the sync storage with your current userconfig. Does not merge: it overwrites.
* Replaces the configuration in your sync storage with your current configuration. Does not merge: it overwrites.
*/
export async function push() {
return browser.storage.sync.set(await browser.storage.local.get(CONFIGNAME))
}
/*
* Replaces the local storage with your sync storage. Does not merge: it overwrites.
* Replaces the local configuration with the configuration from your sync storage. Does not merge: it overwrites.
*/
export async function pull() {
return browser.storage.local.set(await browser.storage.sync.get(CONFIGNAME))