Skip to content

Commit

Permalink
Removed service worker
Browse files Browse the repository at this point in the history
  • Loading branch information
b0wter committed May 11, 2024
1 parent 17a4197 commit 8afec4e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 34 deletions.
2 changes: 0 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
<body>
<div id="elm-node"></div>
<script>
tryRegisterServiceWorker();

const flags = {
blockedAlbums: fetchBlacklistedAlbums(),
language: fetchLanguage(),
Expand Down
14 changes: 0 additions & 14 deletions dist/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,6 @@ const blacklistedAlbumsKey = "blacklisted-albums";
const lastSelectedArtistKey = "lastSelectedArtist";
const lastSelectedLanguageKey = "lastSelectedLanguage";

function tryRegisterServiceWorker() {
if (navigator.serviceWorker.controller) {
console.log("Active service worker found");
} else {
navigator.serviceWorker
.register("js/serviceWorker.js", {
scope: "./"
})
.then(function (reg) {
console.log("Service worker registered");
});
}
}

function getLegacyBlocklistEntries() {
if (document.cookie && document.cookie.length > 0) {
try {
Expand Down
18 changes: 0 additions & 18 deletions dist/js/serviceWorker.js

This file was deleted.

0 comments on commit 8afec4e

Please sign in to comment.