1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-04 09:11:33 +02:00

lua http: dont show pointing to localhost qrcode

This commit is contained in:
Francois Cartegnie 2012-01-21 04:08:10 +01:00
parent 1ed111e782
commit 5db8696589

View File

@ -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));