Skip to content

Commit

Permalink
remove the sw
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed Dec 27, 2023
1 parent d17e209 commit 63a45b7
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 151 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ USER static
WORKDIR /home/static

COPY ./files /data/www
COPY httpd.conf /data/httpd.conf

CMD ["busybox", "httpd", "-f", "-v", "-p", "80", "-h", "/data/www", "-c", "/data/httpd.conf"]
CMD ["busybox", "httpd", "-f", "-v", "-p", "80", "-h", "/data/www"]
7 changes: 0 additions & 7 deletions files/assets/js/loadSw.js

This file was deleted.

9 changes: 9 additions & 0 deletions files/assets/js/removeSw.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
if ('serviceWorker' in navigator) {
navigator.serviceWorker.getRegistrations().then(function(registrations) {
for(let registration of registrations) {
registration.unregister();
}
});
} else {
console.log("Service worker not available.");
}
2 changes: 1 addition & 1 deletion files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
<script src="./assets/js/pdf.min.js"></script>
<script src="./assets/js/3dflipbook.min.js"></script>
<script src="./assets/js/index.js"></script>
<script src="./assets/js/loadSw.js"></script>
<script src="./assets/js/removeSw.js"></script>
</body>
</html>
138 changes: 0 additions & 138 deletions files/sw.js

This file was deleted.

3 changes: 0 additions & 3 deletions httpd.conf

This file was deleted.

0 comments on commit 63a45b7

Please sign in to comment.