mirror of
https://github.com/ellite/Wallos.git
synced 2026-01-06 13:19:54 -06:00
feat: convert wallos into a progressive web app (#151)
fix: improve traditional chinese translations
This commit is contained in:
9
scripts/all.js
Normal file
9
scripts/all.js
Normal 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);
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -316,4 +316,4 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
document.querySelector('#sort-options').addEventListener('focus', function() {
|
||||
isSortOptionsOpen = true;
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user