|
|
@ -1,10 +1,6 @@ |
|
|
|
import Setting from '../domains/Setting'; |
|
|
|
import Setting from '../domains/Setting'; |
|
|
|
|
|
|
|
|
|
|
|
export default class SettingRepository { |
|
|
|
export default class SettingRepository { |
|
|
|
save(settings) { |
|
|
|
|
|
|
|
return browser.storage.local.set({ settings: settings.serialize() }); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async load() { |
|
|
|
async load() { |
|
|
|
let { settings } = await browser.storage.local.get('settings'); |
|
|
|
let { settings } = await browser.storage.local.get('settings'); |
|
|
|
if (!settings) { |
|
|
|
if (!settings) { |
|
|
|