Commit 5db86965 authored by Francois Cartegnie's avatar Francois Cartegnie

lua http: dont show pointing to localhost qrcode

parent 1ed111e7
......@@ -82,6 +82,12 @@ $(function () {
});
$('#stream_host').val(stream_server);
$('#mobileintflink').click(function () {
if ( ( window.location.hostname == 'localhost' )
|| ( window.location.hostname == '127.0.0.1' )
|| ( window.location.hostname == '[::1]' ) )
{
return true;
}
var urlimg = location.href + '/mobile.html';
var codeimg = $('<img width="350" height="350" alt="qrcode"/>');
codeimg.attr('src', 'http://chart.apis.google.com/chart?cht=qr&chs=350x350&chld=L&choe=UTF-8&chl=' + encodeURIComponent(urlimg));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment