|
|
@ -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); }
|
|
|
|