mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-18 00:58:36 +00:00
remember last used url
This commit is contained in:
parent
bc5fd78196
commit
74670f5dd0
@ -238,6 +238,7 @@ label[for="audioOutput"] {
|
||||
* tree. Alternative licencing options can be made available on request.
|
||||
*
|
||||
*/
|
||||
document.querySelector("#changeText").value = localStorage.getItem('lastURL');
|
||||
|
||||
if (navigator.userAgent.indexOf('Mac OS X') != -1){
|
||||
document.getElementById("warning4mac").style.display="block";
|
||||
@ -435,6 +436,7 @@ function modURL(ele=false){
|
||||
return url;
|
||||
}
|
||||
function gohere(){
|
||||
localStorage.setItem('lastURL', document.getElementById('changeText').value);
|
||||
var url = modURL(true);
|
||||
if (!(document.getElementById('changeText').value.includes("obs.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.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user