Skip to content

Commit ea61385

Browse files
committed
Fixing a bug when loading the saved logger level. Fixes #80.
1 parent 8a2503e commit ea61385

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)