robosats/frontend/src/models/Settings.default.basic.ts

14 lines
393 B
TypeScript
Raw Normal View History

import { systemClient } from '../services/System';
import BaseSettings from './Settings.model';
class Settings extends BaseSettings {
constructor() {
super();
2022-11-09 22:10:32 +00:00
const fontSizeCookie = systemClient.getItem('settings_fontsize_basic');
this.fontSize = fontSizeCookie !== '' ? Number(fontSizeCookie) : 14;
}
public frontend: 'basic' | 'pro' = 'basic';
}
export default Settings;