diff --git a/iframe.html b/iframe.html index fc3fde0..afa7545 100644 --- a/iframe.html +++ b/iframe.html @@ -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;", diff --git a/index.html b/index.html index 78a2345..080bbc1 100644 --- a/index.html +++ b/index.html @@ -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 - +