Translate UI to English and add PWA support
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
(() => {
|
||||
if (!("serviceWorker" in navigator)) {
|
||||
return;
|
||||
}
|
||||
|
||||
window.addEventListener("load", async () => {
|
||||
try {
|
||||
await navigator.serviceWorker.register("/service-worker.js", { scope: "/" });
|
||||
} catch (error) {
|
||||
console.error("Service worker registration failed:", error);
|
||||
}
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user