Files
nostash/Shared (Extension)/Resources/options.js
2023-01-23 23:21:17 -05:00

20 lines
379 B
JavaScript

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