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:
parent
1ed111e782
commit
5db8696589
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user