mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-11 13:48:38 +00:00
Twitch + Chat Bugfix - Detect twitch URL properly
This commit is contained in:
parent
cef38ff7b8
commit
bb74ff43d9
@ -137,7 +137,11 @@ function loadIframes(url=false){
|
|||||||
} else {
|
} else {
|
||||||
var room1 = "https://"+path+"/?push="+roomname+"&webcam&autostart&vd=front&ad=1&transparent&noheader";
|
var room1 = "https://"+path+"/?push="+roomname+"&webcam&autostart&vd=front&ad=1&transparent&noheader";
|
||||||
}
|
}
|
||||||
var room2 = "https://www.twitch.tv/embed/"+twitch+"/chat?parent="+location.hostname;
|
|
||||||
|
var room2 = twitch.startsWith("https://")
|
||||||
|
? twitch
|
||||||
|
: `https://www.twitch.tv/embed/${twitch}/chat?parent=${location.hostname}`;
|
||||||
|
|
||||||
var iframe = document.createElement("iframe");
|
var iframe = document.createElement("iframe");
|
||||||
iframe.allow = "autoplay;camera;microphone;fullscreen;picture-in-picture;";
|
iframe.allow = "autoplay;camera;microphone;fullscreen;picture-in-picture;";
|
||||||
iframe.src = room1;
|
iframe.src = room1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user