diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2014-01-21 13:37:18 -0500 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2014-01-21 13:37:18 -0500 |
commit | a17e2dfe7a2ed9b033ce8ee224395fdaea21bdfe (patch) | |
tree | e04860010661b4ce2af42d78f1ab6895dee2e395 /www/js/html5ks.js | |
parent | 0463505d98e98a204215e8669ce3270ab0448d1a (diff) | |
download | html5ks-a17e2dfe7a2ed9b033ce8ee224395fdaea21bdfe.tar.xz html5ks-a17e2dfe7a2ed9b033ce8ee224395fdaea21bdfe.zip |
Stuff.
Diffstat (limited to 'www/js/html5ks.js')
-rw-r--r-- | www/js/html5ks.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/www/js/html5ks.js b/www/js/html5ks.js index e1c0bd7..093505e 100644 --- a/www/js/html5ks.js +++ b/www/js/html5ks.js @@ -19,7 +19,11 @@ window.html5ks = { sfxVolume: 1, language: "en" }; - var loaded = localStorage.persistent ? JSON.parse(localStorage.persistent) : {}; + try { + var loaded = localStorage.persistent ? JSON.parse(localStorage.persistent) : {}; + } catch (e) { + var loaded = {}; + } var defProp = function (v) { Object.defineProperty(html5ks.persistent, k, { get: function () { |