Installable as an app (PWA): manifests, offline-only service worker, icons
This commit is contained in:
parent
b26360e8f3
commit
44708d5f3c
16 changed files with 246 additions and 0 deletions
|
|
@ -165,3 +165,6 @@ function toast(msg) {
|
|||
}
|
||||
|
||||
const steamProfile = (sid) => `https://steamcommunity.com/profiles/${encodeURIComponent(sid)}`;
|
||||
|
||||
// The service worker makes the site installable as an app (see sw.js).
|
||||
if ("serviceWorker" in navigator) navigator.serviceWorker.register("/sw.js").catch(() => {});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue