Skip to content

Commit

Permalink
fix(ng-yasgui): check for yasgui cache clean
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanth authored and srikanthv02 committed Jan 23, 2024
1 parent 75e8114 commit 9e5cb3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/ng-yasgui/src/lib/services/yasgui.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class YasguiService {
const key = localStorage.key(i) as string;
// Note -> used as a backup(d438d94f6a63bec652b615cd4a3c2f51)
// (the newer version of Yasgui is adding this key -> d438d94f6a63bec652b615cd4a3c2f51)
if (key.startsWith('yasgui') || key.startsWith('yasr') || JSON.parse(localStorage.getItem(key) as string).hasOwnProperty('val') || key.startsWith('d438d94f6a63bec652b615cd4a3c2f51')) {
if (key.startsWith('yasgui') || key.startsWith('yasr') || localStorage.getItem(key)?.includes('val') || key.startsWith('d438d94f6a63bec652b615cd4a3c2f51')) {
localStorage.removeItem(key);
}
}
Expand Down

0 comments on commit 9e5cb3a

Please sign in to comment.