Improve the LessLoader check to hopefully stop the message saying cookies were blocked.
This commit is contained in:
parent
72f03b2a47
commit
f418ee9632
@ -9,6 +9,7 @@ define([
|
||||
var module = { exports: {} };
|
||||
var key = Config.requireConf.urlArgs;
|
||||
var localStorage = {};
|
||||
if (!window.cryptpadCache) {
|
||||
try {
|
||||
localStorage = window.localStorage || {};
|
||||
if (localStorage['LESS_CACHE'] !== key) {
|
||||
@ -22,6 +23,7 @@ define([
|
||||
console.error(e);
|
||||
localStorage = {};
|
||||
}
|
||||
}
|
||||
|
||||
var cacheGet = function (k, cb) {
|
||||
if (window.cryptpadCache) { return void window.cryptpadCache.get(k, cb); }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user