summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-01-25 14:51:45 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2014-01-25 14:51:45 -0500
commitd9af299843dca9b6c9c890a6c7bbce99b2b32fb1 (patch)
treeee625ebe6987e0223829ec86676520d72267e38a /www
parente75aa4e89dcc79383e49a954fc268307736b2b98 (diff)
downloadhtml5ks-d9af299843dca9b6c9c890a6c7bbce99b2b32fb1.tar.xz
html5ks-d9af299843dca9b6c9c890a6c7bbce99b2b32fb1.zip
stuff.
Diffstat (limited to 'www')
-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 () {