blob: f75517a2b36cf5dd13b6de049ab682c3c9c6803e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import Settings from "../../shared/settings/Settings";
import * as messages from "../../shared/messages";
import ColorScheme from "../../shared/ColorScheme";
export default class SettingClient {
async getColorScheme(): Promise<ColorScheme> {
const json = await browser.runtime.sendMessage({
type: messages.SETTINGS_QUERY,
});
const settings = Settings.fromJSON(json);
return settings.properties.colorscheme;
}
}
|