diff --git a/index.html b/index.html index f6c36670..2e467098 100644 --- a/index.html +++ b/index.html @@ -4507,28 +4507,6 @@ for (var k = 0; k < b0.split(" AND ").length; k++) { return 'Are you sure you want to leave?'; } }; - window.addEventListener('beforeinstallprompt', (e) => { // Add to homescreen - // Prevent the mini-infobar from appearing on mobile - e.preventDefault(); - // Stash the event so it can be triggered later. - deferredPrompt = e; - // Add a click listener to installButton to show the mini-infobar - document.getElementById('installButton').addEventListener('click', function(){ - // Show the prompt - deferredPrompt.prompt(); - }); - }); - if ('serviceWorker' in navigator) { // Register service worker for Chrome PWA - window.addEventListener('load', function() { - navigator.serviceWorker.register('/sw.js').then(function(registration) { - // Registration was successful - console.log('ServiceWorker registration successful with scope: ', registration.scope); - }, function(err) { - // registration failed :( - console.log('ServiceWorker registration failed: ', err); - }); - }); - } shiftDown = 0; // If the user presses [ or -, decrease the mouse size by 2 document.addEventListener("keydown", function(e) { @@ -4715,7 +4693,7 @@ for (var k = 0; k < b0.split(" AND ").length; k++) {
-
ControlsChangelogFeedbackInstall
+
ControlsChangelogFeedback
diff --git a/sw.js b/sw.js deleted file mode 100644 index 8423b382..00000000 --- a/sw.js +++ /dev/null @@ -1 +0,0 @@ -self.addEventListener('fetch', function(event) {}); \ No newline at end of file