mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-11 13:48:38 +00:00
commit
d170214cc8
@ -1,22 +0,0 @@
|
||||
{
|
||||
"short_name": "VDO.Ninja",
|
||||
"name": "VDO.Ninja: Progressive Web App Version",
|
||||
"icons": [
|
||||
{
|
||||
"src": "./media/icon.svg",
|
||||
"type": "image/svg+xml",
|
||||
"sizes": "512x512"
|
||||
},
|
||||
{
|
||||
"src": "./media/icon.svg",
|
||||
"type": "image/svg+xml",
|
||||
"sizes": "192x192"
|
||||
}
|
||||
],
|
||||
"start_url": "./?pwa",
|
||||
"background_color": "#3367D6",
|
||||
"display": "standalone",
|
||||
"scope": "./",
|
||||
"theme_color": "#3367D6",
|
||||
"description": "Weather forecast information"
|
||||
}
|
||||
4
thirdparty/StreamSaver.js
vendored
4
thirdparty/StreamSaver.js
vendored
@ -30,7 +30,7 @@
|
||||
WritableStream: global.WritableStream || ponyfill.WritableStream,
|
||||
supported: true,
|
||||
version: { full: '2.0.7', major: 2, minor: 0, dot: 7 },
|
||||
mitm: './thirdparty/mitm.html'
|
||||
mitm: './thirdparty/mitm.html?v=2'
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
7
thirdparty/mitm.html
vendored
7
thirdparty/mitm.html
vendored
@ -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>
|
||||
Loading…
x
Reference in New Issue
Block a user