summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/html5ks.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/www/js/html5ks.js b/www/js/html5ks.js
index 093505e..50555b3 100644
--- a/www/js/html5ks.js
+++ b/www/js/html5ks.js
@@ -19,11 +19,10 @@ window.html5ks = {
sfxVolume: 1,
language: "en"
};
+ var loaded = {};
try {
- var loaded = localStorage.persistent ? JSON.parse(localStorage.persistent) : {};
- } catch (e) {
- var loaded = {};
- }
+ loaded = JSON.parse(localStorage.persistent);
+ } catch (e) {}
var defProp = function (v) {
Object.defineProperty(html5ks.persistent, k, {
get: function () {