blob: 18476fd08acde6a865567d18b26b66fcbcf47223 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import SettingData from '../../shared/SettingData';
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);
}
}
|