luci-mod-freifunk: fix redirect url
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 7 May 2018 14:20:18 +0000 (22:20 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Mon, 7 May 2018 14:27:58 +0000 (22:27 +0800)
location.hostname lacks port info

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
modules/luci-mod-freifunk/htdocs/luci-static/flashing.html

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