From d9af299843dca9b6c9c890a6c7bbce99b2b32fb1 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sat, 25 Jan 2014 14:51:45 -0500 Subject: stuff. --- www/js/html5ks.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'www') 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 () { -- cgit v1.2.3-70-g09d2