Skip to content

Commit 320b23d

Browse files
committed
fix bug in Hostname banner
1 parent 68200fb commit 320b23d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

www/index.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,10 @@ function HostnameConfirmed() {
230230

231231
function SetupHostnameBanner() {
232232
let showHostnameBanner = false;
233-
console.log(settings.hasOwnProperty('hostnameConfirmed'));
234-
if (!(settings.hasOwnProperty('hostnameConfirmed') && $settings["HostName"] == "FPP")) {
235-
showHostnameBanner = true;
233+
if (settings.hasOwnProperty('HostName') && settings.HostName == "FPP") {
234+
if (!settings.hasOwnProperty('hostnameConfirmed')) {
235+
showHostnameBanner = true;
236+
}
236237
}
237238

238239
if (showHostnameBanner) {

www/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,9 @@
12561256
"regexDesc": "Host names must contain only letters, numbers and hyphens",
12571257
"platforms": [
12581258
"!MacOS"
1259+
],
1260+
"exposedAsJSToPages": [
1261+
"index"
12591262
]
12601263
},
12611264
"Latitude": {

0 commit comments

Comments
 (0)