mirror of https://github.com/vector-im/riot-web
Merge pull request #18875 from vector-im/palid/fix/clear-persisted-log-level
Remove accidentally persisted log-level datapull/19165/head
commit
7aff5b2df3
|
@ -33,6 +33,7 @@ require('katex/dist/katex.css');
|
||||||
* On production build it's going to be an empty module, so don't worry about that.
|
* On production build it's going to be an empty module, so don't worry about that.
|
||||||
*/
|
*/
|
||||||
require('./devcss');
|
require('./devcss');
|
||||||
|
require('./localstorage-fix');
|
||||||
// These are things that can run before the skin loads - be careful not to reference the react-sdk though.
|
// These are things that can run before the skin loads - be careful not to reference the react-sdk though.
|
||||||
import { parseQsFromFragment } from "./url_utils";
|
import { parseQsFromFragment } from "./url_utils";
|
||||||
import './modernizr';
|
import './modernizr';
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* 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 => {
|
||||||
|
if (key.indexOf('loglevel:') === 0) {
|
||||||
|
window.localStorage.removeItem(key);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in New Issue