stub localStorage, and handle errors that might come from touching localStorage

pull/1/head
ansuz 7 years ago
parent be8ea4102e
commit ba0e935add

@ -10,7 +10,13 @@ define([
var module = { exports: {} };
var key = Config.requireConf.urlArgs;
var localStorage = window.localStorage || {};
var localStorage;
try {
localStorage = window.localStorage || {};
} catch (e) {
console.error(e);
localStorage = {};
}
var fixURL = function (url) {
var mark = (url.indexOf('?') !== -1) ? '&' : '?';

Loading…
Cancel
Save