1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Refactor the comments to use flash publisher

This commit is contained in:
winlin 2019-12-18 14:35:43 +08:00
parent dd44d76d72
commit 4e3650b8c7

View file

@ -55,7 +55,7 @@
$(function(){
var l = window.location;
var url = window.location.href;
if (true || l.hostname !== 'localhost' && l.hostname !== '127.0.0.1' && l.protocol == 'http:') {
if (l.hostname !== 'localhost' && l.hostname !== '127.0.0.1' && l.protocol == 'http:') {
// For flash publisher, must use HTTPS.
url = window.location.href.replace('http:', 'https:');
}