feat: convert wallos into a progressive web app (#151)

fix: improve traditional chinese translations
This commit is contained in:
Miguel Ribeiro
2024-02-26 22:53:04 +01:00
committed by GitHub
parent 0c796b9e6e
commit 19e2058976
10 changed files with 102 additions and 5 deletions

9
scripts/all.js Normal file
View File

@@ -0,0 +1,9 @@
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('service-worker.js').then(function(registration) {
//console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function(err) {
console.log('ServiceWorker registration failed: ', err);
});
});
}

View File

@@ -316,4 +316,4 @@ document.addEventListener('DOMContentLoaded', function() {
document.querySelector('#sort-options').addEventListener('focus', function() {
isSortOptionsOpen = true;
});
});
});