Add files via upload

This commit is contained in:
Steve Seguin 2022-02-16 03:20:34 -05:00 committed by GitHub
parent 7d45445b64
commit cf2b97737e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View File

@ -46,14 +46,12 @@
iframe.src = src
iframe.loaded = false
iframe.name = 'iframe'
iframe.id = "mitm_iframe"
iframe.isIframe = true
iframe.postMessage = (...args) => iframe.contentWindow.postMessage(...args)
iframe.addEventListener('load', () => {
iframe.loaded = true
}, { once: true })
document.body.appendChild(iframe)
console.log(iframe);
return iframe
}

View File

@ -14,10 +14,7 @@
when the worker then receives a stream then the worker will tell the opener
to open up a link that will start the download
-->
<html>
<body>
<script>
console.log("SERVER WORKING STARTED")
// This will prevent the sw from restarting
let keepAlive = () => {
keepAlive = () => {}
@ -162,6 +159,4 @@ if (navigator.serviceWorker) {
keepAlive()
}
</script>
</body>
</html>
</script>