ghostfolio/apps/client/src/app/services/settings-storage.service.ts
Thomas Kaul 308d3b64b1
Feature/Remove empty constructors (#3958)
* Remove empty constructors
2024-10-19 18:54:49 +02:00

23 lines
538 B
TypeScript

import { Injectable } from '@angular/core';
export const KEY_RANGE = 'range';
export const KEY_STAY_SIGNED_IN = 'staySignedIn';
export const KEY_TOKEN = 'auth-token';
@Injectable({
providedIn: 'root'
})
export class SettingsStorageService {
public getSetting(aKey: string): string {
return window.localStorage.getItem(aKey);
}
public setSetting(aKey: string, aValue: string) {
window.localStorage.setItem(aKey, aValue);
}
public removeSetting(aKey: string) {
return window.localStorage.removeItem(aKey);
}
}