diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2014-01-25 14:51:45 -0500 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2014-01-25 14:51:45 -0500 |
commit | d9af299843dca9b6c9c890a6c7bbce99b2b32fb1 (patch) | |
tree | ee625ebe6987e0223829ec86676520d72267e38a /www/js | |
parent | e75aa4e89dcc79383e49a954fc268307736b2b98 (diff) | |
download | html5ks-d9af299843dca9b6c9c890a6c7bbce99b2b32fb1.tar.xz html5ks-d9af299843dca9b6c9c890a6c7bbce99b2b32fb1.zip |
stuff.
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/html5ks.js | 7 |
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 () { |