2021-04-13 21:53:58 +02:00
|
|
|
import { Injectable } from '@angular/core';
|
|
|
|
|
|
|
|
export const RANGE = 'range';
|
|
|
|
|
|
|
|
@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);
|
|
|
|
}
|
2021-06-14 16:09:40 +02:00
|
|
|
|
|
|
|
public removeSetting(aKey: string): void {
|
|
|
|
return window.localStorage.removeItem(aKey);
|
|
|
|
}
|
2021-04-13 21:53:58 +02:00
|
|
|
}
|