diff --git a/src/main/webapp/settings.html b/src/main/webapp/settings.html index 6ea3cfd..c5cfc0b 100644 --- a/src/main/webapp/settings.html +++ b/src/main/webapp/settings.html @@ -122,7 +122,7 @@ } var ph = window.location.pathname.split('/'); - $("#al").html(window.location.protocol+'//'+window.location.host+(ph>2?'/'+ph[1]:ph[0])+'/alinotify'); + $("#al").html(window.location.protocol+'//'+window.location.host+(ph.length>2?('/'+ph[1]):ph[0])+'/alinotify');