Verifying simple script messaging.

This commit is contained in:
Ryan Breen
2023-01-23 23:21:17 -05:00
parent 25da1d0cab
commit 03af8e71ad
3 changed files with 21 additions and 2 deletions

View File

@@ -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();