mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 01:57:49 +01:00
Add service worker and offline page
This commit is contained in:
parent
050518132d
commit
ba99f09304
1 changed files with 10 additions and 2 deletions
|
@ -87,8 +87,16 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
renderTemplate(res, req, "content-settings.ejs");
|
renderTemplate(res, req, "content-settings.ejs");
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/manifest.json", function (req, res) {
|
app.get("/offline", function (req, res) {
|
||||||
res.sendFile("manifest.json", { root: location_pwa });
|
res.sendFile("offline.html", { root: location_pwa });
|
||||||
|
});
|
||||||
|
|
||||||
|
app.get("/manifest.json", function (req, res) {
|
||||||
|
res.sendFile("manifest.json", { root: location_pwa });
|
||||||
|
});
|
||||||
|
|
||||||
|
app.get("/service-worker.js", function (req, res) {
|
||||||
|
res.sendFile("service-worker.js", { root: location_pwa });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue