Revert "WEB-(394)-fix: replace all direct JSON.parse usages with safe parsing utilities"

This commit is contained in:
Víctor Romero
2025-11-17 12:26:00 -06:00
committed by GitHub
parent 0b783cd44c
commit 0ea23b0990
6 changed files with 11 additions and 47 deletions
@@ -1,5 +1,4 @@
import { Injectable, EventEmitter } from '@angular/core';
import { safeParseObject } from 'app/core/utils/json';
import { Theme } from './theme.model';
import { ThemeManagerService } from './theme-manager.service';
@@ -20,7 +19,7 @@ export class ThemeStorageService {
}
getTheme(): Theme {
return safeParseObject<Theme | null>(localStorage.getItem(this.themeStorageKey), null);
return JSON.parse(localStorage.getItem(this.themeStorageKey));
}
clearTheme() {