luci-mod-freifunk: fix redirect url

location.hostname lacks port info

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
Yousong Zhou 2018-05-07 22:20:18 +08:00
parent c1eba6a046
commit b810d99503

View file

@ -45,7 +45,7 @@
if( time_remaining <= 0 ) if( time_remaining <= 0 )
{ {
window.clearInterval(interval); window.clearInterval(interval);
location.href = 'http://' + location.hostname + '/'; location.href = 'http://' + location.host + '/';
} }
else else
{ {