robosats/frontend/src/models/Settings.default.pro.selfhosted.ts

16 lines
459 B
TypeScript
Raw Normal View History

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