diff --git a/source/manifest.json b/source/manifest.json index af6d1f3..ba41090 100644 --- a/source/manifest.json +++ b/source/manifest.json @@ -3,7 +3,7 @@ "manifest_version": 2, "name": "Queue", "description": "A WebExtension for queueing links.", - "version": "0.1.0", + "version": "0.1.1", "permissions": [ "contextMenus", "storage", @@ -41,5 +41,10 @@ "./content-scripts.ts" ] } - ] + ], + "applications": { + "gecko": { + "id": "{c3560e6b-00e5-4ab3-b89e-8a54ee5b2c9f}" + } + } } diff --git a/source/utilities/settings.ts b/source/utilities/settings.ts index 2f22409..4d356d9 100644 --- a/source/utilities/settings.ts +++ b/source/utilities/settings.ts @@ -22,8 +22,7 @@ const defaultSettings: Settings = { * Returns the user's settings. */ export async function getSettings(): Promise { - // TODO: Replace local storage with sync storage. - const syncSettings: any = await browser.storage.local.get(defaultSettings); + const syncSettings: any = await browser.storage.sync.get(defaultSettings); const settings: Settings = { latestVersion: syncSettings.latestVersion, queue: syncSettings.queue @@ -37,8 +36,7 @@ export async function getSettings(): Promise { * @param settings The settings to save. */ export async function saveSettings(settings: Settings): Promise { - // TODO: Replace local storage with sync storage. - await browser.storage.local.set(settings); + await browser.storage.sync.set(settings); return settings; }