&ad=1 fix; iframe.html tweak

This commit is contained in:
steveseguin 2023-02-03 15:38:21 -05:00
parent 17c6377773
commit 385b574b36
3 changed files with 7 additions and 2 deletions

View File

@ -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;",

View File

@ -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
View File

@ -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];