Files
ThreadNet-Web/src/vector/localstorage-fix.ts
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
396 B
TypeScript
Raw Normal View History

/**
* Because we've been saving a lot of additional logger data in the localStorage for no particular reason
* we need to, hopefully, unbrick user's devices by geting rid of unnecessary data.
* */
if (window.localStorage) {
Object.keys(window.localStorage).forEach((key) => {
2024-07-31 11:03:18 +01:00
if (key.startsWith("loglevel:")) {
window.localStorage.removeItem(key);
}
});
}