2021-09-02 20:30:12 +02:00
|
|
|
/**
|
|
|
|
* 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) {
|
2022-12-09 13:28:29 +01:00
|
|
|
Object.keys(window.localStorage).forEach((key) => {
|
|
|
|
if (key.indexOf("loglevel:") === 0) {
|
2021-09-02 20:30:12 +02:00
|
|
|
window.localStorage.removeItem(key);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|