Skip to content

Commit

Permalink
might work who knows
Browse files Browse the repository at this point in the history
  • Loading branch information
RedNotSus committed Jan 4, 2025
1 parent ad8d307 commit 8fe29a5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
13 changes: 13 additions & 0 deletions static/misc/media/movie.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@
<link rel="stylesheet" href="/misc/media/css/watch.css" />
<script src="/assets/js/script.js?v=11"></script>
<script src="/misc/media/js/watchmovie.js?v=1"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('/assets/uv/sw.js', {
scope: '/assets/uv/service/',
}).then(function (registration) {
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function (error) {
console.log('ServiceWorker registration failed: ', error);
});
});
}
</script>
</head>

<body>
Expand Down
15 changes: 13 additions & 2 deletions static/misc/media/tv.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@
<link rel="stylesheet" href="css/watch.css" />
<script src="/assets/js/script.js?v=11"></script>
<script src="/misc/media/js/watchtv.js?v=1"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('/assets/uv/sw.js', {
scope: '/assets/uv/service/',
}).then(function (registration) {
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function (error) {
console.log('ServiceWorker registration failed: ', error);
});
});
}
</script>
</head>

<body>
Expand All @@ -34,8 +47,6 @@
<div class="game">
<iframe id="iframe" src="" allowfullscreen></iframe>
</div>


</div>

<div class="episode-selector">
Expand Down

0 comments on commit 8fe29a5

Please sign in to comment.