mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-11 05:38:31 +00:00
&ad=1 fix; iframe.html tweak
This commit is contained in:
parent
17c6377773
commit
385b574b36
@ -18,6 +18,11 @@
|
||||
}
|
||||
|
||||
var iframesrc = document.getElementById("viewlink").value;
|
||||
if (!(iframesrc.startsWith("?") || iframesrc.startsWith("&") || iframesrc.startsWith("http"))){
|
||||
if (iframesrc.split(".").length>1){
|
||||
iframesrc = "https://"+iframesrc;
|
||||
}
|
||||
}
|
||||
var container = document.getElementById("container");
|
||||
var iframe = newElement("iframe", {
|
||||
allow: "document-domain;encrypted-media;sync-xhr;usb;web-share;cross-origin-isolated;accelerometer;midi;geolocation;autoplay;camera;microphone;fullscreen;picture-in-picture;display-capture;",
|
||||
|
||||
@ -2401,7 +2401,7 @@
|
||||
// session.hidehome = true; // If used, 'hide home' will make the landing page inaccessible, along with hiding a few go-home elements.
|
||||
// session.record = false; // uncomment to block users from being able to record via vdo.ninja's built in recording function
|
||||
</script>
|
||||
<script type="text/javascript" crossorigin="anonymous" id="lib-js" src="./lib.js?ver=647"></script>
|
||||
<script type="text/javascript" crossorigin="anonymous" id="lib-js" src="./lib.js?ver=648"></script>
|
||||
<!--
|
||||
// If you wish to change branding, blank offers a good clean start.
|
||||
<script type="text/javascript" id="main-js" src="./main.js" data-translation="blank"></script>
|
||||
|
||||
2
lib.js
2
lib.js
@ -16622,7 +16622,7 @@ function gotDevices(deviceInfos) {
|
||||
delete session.store.SelectedVideoInputDevices;
|
||||
}
|
||||
|
||||
if (session.audioDevice){
|
||||
if (session.audioDevice && (typeof session.audioDevice == "object")){
|
||||
var adMatch = [...session.audioDevice];
|
||||
} else if (session.store && session.store.SelectedAudioInputDevices && session.store.SelectedAudioInputDevices.length){
|
||||
var adMatch = [...session.store.SelectedAudioInputDevices];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user