diff --git a/electron.html b/electron.html
index 622f7ac..39d7c1b 100644
--- a/electron.html
+++ b/electron.html
@@ -271,10 +271,10 @@
-
+
+
@@ -356,9 +356,10 @@ function resetHistory(){
var urlParams = new URLSearchParams(window.location.search);
-if (navigator.userAgent.indexOf('Mac OS X') != -1){
- document.getElementById("warning4mac").style.display="block";
-} else if (location.hostname.toLowerCase() == "obs.ninja"){
+//if (navigator.userAgent.indexOf('Mac OS X') != -1){
+// document.getElementById("warning4mac").style.display="block";
+//} else
+if ((location.hostname.toLowerCase() == "obs.ninja") || (location.hostname.toLowerCase() == "vdo.ninja")){
try {
if (navigator.userAgent.toLowerCase().indexOf(' electron/') > -1) { // for now, just PC or Linux versions only.
function compareVersions(version){
@@ -522,8 +523,8 @@ function updateURLParameter(url, param, paramVal){
if (urlParams.has('name')){
var name = urlParams.get('name');
- if (name!="OBSNinja"){
- document.getElementById('changeText').value = "https://obs.ninja/?view="+name;
+ if ((name!="OBSNinja") || (name!="VDONinja")){
+ document.getElementById('changeText').value = "https://vdo.ninja/?view="+name;
}
}
@@ -543,6 +544,8 @@ function modURL(){
var url = document.getElementById('changeText').value;
if (url.startsWith("obs.ninja")){
url = "https://"+url;
+ } else if (url.startsWith("vdo.ninja")){
+ url = "https://"+url;
}
console.log(url);
return url;
@@ -551,7 +554,7 @@ function gohere(){
addUrlToHistory(document.getElementById('changeText').value);
localStorage.setItem('lastUrls', JSON.stringify(lastUrls));
var url = modURL();
- if (!(document.getElementById('changeText').value.includes("obs.ninja")) && (document.getElementById('changeText').value.includes("http")) && (document.getElementById('changeText').value.includes("&sink"))){
+ if (!(document.getElementById('changeText').value.includes("vdo.ninja")) && (document.getElementById('changeText').value.includes("http")) && (document.getElementById('changeText').value.includes("&sink"))){
alert("Notice: The &sink command is domain specific.\nVisit https://YOURDOMAIN.com/electron instead.");
}
window.location = url;