blob: 927bce9b9756e56d0abcf7e2dac01d224a3102df (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { injectable } from 'tsyringe';
import SettingData from '../../shared/SettingData';
@injectable()
export default class SettingRepository {
async load(): Promise<SettingData | null> {
let { settings } = await browser.storage.local.get('settings');
if (!settings) {
return null;
}
return SettingData.valueOf(settings as any);
}
}
|