mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 17:06:31 -06:00
FIX: if localStorage is disabled, still boot
This commit is contained in:
parent
aa81261875
commit
f6c6f6e7a1
@ -10,9 +10,13 @@
|
||||
var safeLocalStorage;
|
||||
|
||||
try {
|
||||
safeLocalStorage = localStorage;
|
||||
safeLocalStorage = localStorage;
|
||||
if (localStorage["disableLocalStorage"] === "true") {
|
||||
safeLocalStorage = null;
|
||||
}
|
||||
} catch(e){
|
||||
// cookies disabled, we don't care
|
||||
safeLocalStorage = null;
|
||||
}
|
||||
|
||||
Discourse.KeyValueStore = {
|
||||
|
Loading…
Reference in New Issue
Block a user