mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-27 13:28:33 +00:00
file saving fix
This commit is contained in:
parent
5007bb029d
commit
5f1d2e78b5
@ -1928,7 +1928,7 @@
|
|||||||
|
|
||||||
|
|
||||||
var session = WebRTC.Media; // session is a required global variable if configuring manually. Run before loading main.js but after webrtc.js.
|
var session = WebRTC.Media; // session is a required global variable if configuring manually. Run before loading main.js but after webrtc.js.
|
||||||
session.version = "21.0";
|
session.version = "21.1";
|
||||||
session.streamID = session.generateStreamID(); // randomly generates a streamID for this session. You can set your own programmatically if needed
|
session.streamID = session.generateStreamID(); // randomly generates a streamID for this session. You can set your own programmatically if needed
|
||||||
|
|
||||||
session.defaultPassword = "someEncryptionKey123"; // Change this password if self-deploying for added security/privacy
|
session.defaultPassword = "someEncryptionKey123"; // Change this password if self-deploying for added security/privacy
|
||||||
|
|||||||
2
lib.js
2
lib.js
@ -10749,7 +10749,7 @@ async function createDirectorOnlyBox() {
|
|||||||
if (session.label){
|
if (session.label){
|
||||||
labelID.innerText = session.label;
|
labelID.innerText = session.label;
|
||||||
}
|
}
|
||||||
pokeIframeAPI("control-box", true, UUID);
|
pokeIframeAPI("control-box", true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
function shiftPC(ele, shift, director=false){
|
function shiftPC(ele, shift, director=false){
|
||||||
|
|||||||
15
main.js
15
main.js
@ -146,19 +146,6 @@ async function main(){ // main asyncronous thread; mostly initializes the user s
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (urlParams.has('pwa')){
|
|
||||||
getById("enterInvite").classList.remove("advanced");
|
|
||||||
}
|
|
||||||
if ("serviceWorker" in navigator) {
|
|
||||||
window.addEventListener("load", function() {
|
|
||||||
navigator.serviceWorker
|
|
||||||
.register("./serviceWorker.js")
|
|
||||||
.then(res => log("service worker registered"))
|
|
||||||
.catch(err => warnlog("service worker not registered"))
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (navigator.userAgent.toLowerCase().indexOf(' electron/') > -1) {
|
if (navigator.userAgent.toLowerCase().indexOf(' electron/') > -1) {
|
||||||
try {
|
try {
|
||||||
getById("electronDragZone").style.cursor="grab";
|
getById("electronDragZone").style.cursor="grab";
|
||||||
@ -4142,7 +4129,7 @@ setTimeout(function(){ // lazy load
|
|||||||
script.onload = function() {
|
script.onload = function() {
|
||||||
var script = document.createElement('script');
|
var script = document.createElement('script');
|
||||||
document.head.appendChild(script);
|
document.head.appendChild(script);
|
||||||
script.src = "./thirdparty/StreamSaver.js?v=4"; // dynamically load this only if its needed. Keeps loading time down.
|
script.src = "./thirdparty/StreamSaver.js?v=9"; // dynamically load this only if its needed. Keeps loading time down.
|
||||||
};
|
};
|
||||||
script.src = "./thirdparty/polyfill.min.js"; // dynamically load this only if its needed. Keeps loading time down.
|
script.src = "./thirdparty/polyfill.min.js"; // dynamically load this only if its needed. Keeps loading time down.
|
||||||
},0);
|
},0);
|
||||||
@ -1,7 +1 @@
|
|||||||
self.addEventListener("fetch", fetchEvent => {
|
|
||||||
fetchEvent.respondWith(
|
|
||||||
caches.match(fetchEvent.request).then(res => {
|
|
||||||
return res || fetch(fetchEvent.request)
|
|
||||||
})
|
|
||||||
)
|
|
||||||
})
|
|
||||||
Loading…
x
Reference in New Issue
Block a user