diff --git a/Shared (Extension)/Resources/background.js b/Shared (Extension)/Resources/background.js index 7d86548..2dab0de 100644 --- a/Shared (Extension)/Resources/background.js +++ b/Shared (Extension)/Resources/background.js @@ -10,7 +10,8 @@ const storage = browser.storage.local; browser.runtime.onInstalled.addListener(async ({ reason }) => { // I would like to be able to skip this for development purposes - let ignoreHook = (await storage.get('ignoreInstallHook')).ignoreInstallHook; + let ignoreHook = (await storage.get({ ignoreInstallHook: false })) + .ignoreInstallHook; if (ignoreHook === true) { return; } diff --git a/Shared (Extension)/Resources/options.html b/Shared (Extension)/Resources/options.html index 22851eb..89a3f06 100644 --- a/Shared (Extension)/Resources/options.html +++ b/Shared (Extension)/Resources/options.html @@ -11,7 +11,13 @@

Settings

-

+ + + \ No newline at end of file diff --git a/Shared (Extension)/Resources/options.js b/Shared (Extension)/Resources/options.js index 47a21ec..a999c56 100644 --- a/Shared (Extension)/Resources/options.js +++ b/Shared (Extension)/Resources/options.js @@ -2,6 +2,18 @@ import Alpine from 'alpinejs'; Alpine.data('options', () => ({ msg: 'Hello world!', + profileNames: ['Default'], + profileIndex: 0, + + async init() { + await this.getProfileNames(); + }, + + async getProfileNames() { + this.profileNames = await browser.runtime.sendMessage({ + kind: 'getProfileNames', + }); + }, })); Alpine.start();