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 module = { exports: {} };
|
||||||
var key = Config.requireConf.urlArgs;
|
var key = Config.requireConf.urlArgs;
|
||||||
var localStorage = {};
|
var localStorage = {};
|
||||||
|
if (!window.cryptpadCache) {
|
||||||
try {
|
try {
|
||||||
localStorage = window.localStorage || {};
|
localStorage = window.localStorage || {};
|
||||||
if (localStorage['LESS_CACHE'] !== key) {
|
if (localStorage['LESS_CACHE'] !== key) {
|
||||||
@ -22,6 +23,7 @@ define([
|
|||||||
console.error(e);
|
console.error(e);
|
||||||
localStorage = {};
|
localStorage = {};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var cacheGet = function (k, cb) {
|
var cacheGet = function (k, cb) {
|
||||||
if (window.cryptpadCache) { return void window.cryptpadCache.get(k, cb); }
|
if (window.cryptpadCache) { return void window.cryptpadCache.get(k, cb); }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user