robosats/frontend/src/models/Settings.default.basic.selfhosted.ts
KoalaSat 0e115e06b1
Refactor Webpacks (#1212)
refactor webpacks
2024-04-03 05:55:42 +00:00

16 lines
457 B
TypeScript

import { systemClient } from '../services/System';
import BaseSettings from './Settings.model';
class SettingsSelfhosted extends BaseSettings {
constructor() {
super();
const fontSizeCookie = systemClient.getItem('settings_fontsize_basic');
this.fontSize = fontSizeCookie !== '' ? Number(fontSizeCookie) : 14;
}
public frontend: 'basic' | 'pro' = 'basic';
public selfhostedClient: boolean = true;
}
export default SettingsSelfhosted;