Improve the LessLoader check to hopefully stop the message saying cookies were blocked.

pull/1/head
Caleb James DeLisle 8 years ago
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…
Cancel
Save