ghostfolio/apps/client/src/app/services/settings-storage.service.ts
Matthias Frey 6c1119caec
Restrict webauthn to fingerprint only and improve UX (#161)
* Restrict webauthn to fingerprint only

* Move webauthn login to separate page /webauthn

* Stay signed in with social login

* Update changelog

Co-authored-by: Thomas <4159106+dtslvr@users.noreply.github.com>
2021-06-14 21:57:09 +02:00

24 lines
524 B
TypeScript

import { Injectable } from '@angular/core';
export const RANGE = 'range';
export const STAY_SIGNED_IN = 'staySignedIn';
@Injectable({
providedIn: 'root'
})
export class SettingsStorageService {
public constructor() {}
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): void {
return window.localStorage.removeItem(aKey);
}
}