embed selfdetection fix

This commit is contained in:
cat 2015-10-20 11:25:57 +02:00
parent 718d009f9f
commit 718c0b7f35
3 changed files with 58 additions and 4 deletions

View file

@ -14,7 +14,7 @@
var embedtype = $('input[name=force]').val();
var info = document.createElement('script');
info.src = 'http://'+window.location.hostname+':8080/info_'+streamName+'.js';
info.src = 'http://'+(window.location.hostname == '' ? 'localhost' : window.location.hostname)+':8080/info_'+streamName+'.js';
document.getElementById('embedcontainer').appendChild(info);
info.onload = function(){
if (embedtype == '') {