vlc | branch: master | Francois Cartegnie <[email protected]> | Sat Jan 21 04:08:10 2012 +0100| [5db869658984cf46a4b9f79f12348b12102d3f63] | committer: Francois Cartegnie
lua http: dont show pointing to localhost qrcode > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5db869658984cf46a4b9f79f12348b12102d3f63 --- share/lua/http/js/ui.js | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/share/lua/http/js/ui.js b/share/lua/http/js/ui.js index 7fe3207..a3a833e 100644 --- a/share/lua/http/js/ui.js +++ b/share/lua/http/js/ui.js @@ -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)); _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
