* applied eslint * add locales and lint the project * removed error boundary * updated locales * fix min files * fix locales
23 lines
507 B
JavaScript
23 lines
507 B
JavaScript
export const KEY = '__OPENREPLAY_DEV_TOOLS__';
|
|
|
|
export const options = {
|
|
logStuff(verbose = true) {
|
|
this.verbose = verbose;
|
|
localStorage.setItem(KEY, JSON.stringify(this));
|
|
},
|
|
enableCrash: false,
|
|
verbose: false,
|
|
exceptionsLogs: [],
|
|
};
|
|
|
|
export const clearLogs = () => {
|
|
options.exceptionsLogs = [];
|
|
};
|
|
|
|
const storedString = localStorage.getItem(KEY);
|
|
if (storedString) {
|
|
const storedOptions = JSON.parse(storedString);
|
|
Object.assign(options, storedOptions);
|
|
}
|
|
|
|
window[KEY] = options;
|