Skip to content

Commit 277a161

Browse files
committed
Fixing a but when loading the saved logger level. Fixes #80.
1 parent b7e4a38 commit 277a161

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/core/logger.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class Logger {
5959

6060
}
6161

62-
private _loadLevel = (): Level => Level[localStorage.getItem( this._storeAs ) as string];
62+
private _loadLevel = (): Level => Number(localStorage.getItem( this._storeAs ));
6363

6464
private _storeLevel(level: Level) { localStorage[ this._storeAs ] = level; }
6565

0 commit comments

Comments
 (0)