diff --git a/lib/client/clock-client.js b/lib/client/clock-client.js index bf7fca437db..20c10a1bee9 100644 --- a/lib/client/clock-client.js +++ b/lib/client/clock-client.js @@ -65,7 +65,12 @@ client.render = function render (xhr) { if (m < 10) m = "0" + m; $('#clock').text(h + ":" + m); - if (!window.serverSettings.settings.showClockClosebutton) { + var queryDict = {}; + location.search.substr(1).split("&").forEach(function(item) { queryDict[item.split("=")[0]] = item.split("=")[1] }); + + console.log(queryDict); + + if (!window.serverSettings.settings.showClockClosebutton && !queryDict['showClockClosebutton']) { $('#close').css('display', 'none'); } diff --git a/lib/settings.js b/lib/settings.js index 256e308185b..cf29d169447 100644 --- a/lib/settings.js +++ b/lib/settings.js @@ -47,7 +47,7 @@ function init () { , secureHstsHeaderIncludeSubdomains: false , secureHstsHeaderPreload: false , secureCsp: false - , showClockClosebutton: true + , showClockClosebutton: false }; var valueMappers = { diff --git a/views/index.html b/views/index.html index 8df0662b412..cf13cdb91a7 100644 --- a/views/index.html +++ b/views/index.html @@ -174,9 +174,9 @@