stub localStorage, and handle errors that might come from touching localStorage
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…
Reference in New Issue