From 6ca9552ac361d276ffdb3085eed10e513e8c6bf7 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Wed, 29 Jan 2014 17:57:22 -0500 Subject: More stuff. --- www/js/html5ks.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'www/js') diff --git a/www/js/html5ks.js b/www/js/html5ks.js index 50555b3..ab5fcd4 100644 --- a/www/js/html5ks.js +++ b/www/js/html5ks.js @@ -29,7 +29,7 @@ window.html5ks = { return v; }, set: function (value) { - v = '' + value; + v = value; localStorage.persistent = JSON.stringify(html5ks.persistent); }, enumerable: true @@ -153,7 +153,7 @@ window.html5ks = { for (var i = 0; i < warns.length; i++) { var warn = warns[i]; if (window.getComputedStyle(warns[i]).getPropertyValue("display") !== "none") { - warn.style.visibility = "visible"; + warn.style.display = "block"; return true; } } @@ -167,9 +167,9 @@ window.html5ks = { if (!this.warnUnsupported()) { this.start(); } + this.i18n.init(); this.api.init(); this.menu.init(); - this.i18n.init(); }, start: function () { this.fetch("json", "script").then(function (d) { -- cgit v1.2.3-70-g09d2