diff --git a/cmd/webserver.go b/cmd/webserver.go index 7291574e..acdc454a 100644 --- a/cmd/webserver.go +++ b/cmd/webserver.go @@ -116,6 +116,7 @@ func startWebServer(c *core.CliContext) error { router.StaticFile("favicon.png", filepath.Join(config.StaticRootPath, "favicon.png")) router.StaticFile("touchicon.png", filepath.Join(config.StaticRootPath, "touchicon.png")) router.StaticFile("manifest.json", filepath.Join(config.StaticRootPath, "manifest.json")) + router.StaticFile("sw.js", filepath.Join(config.StaticRootPath, "sw.js")) router.GET("/server_settings.js", bindCachedJs(api.ServerSettings.ServerSettingsJavascriptHandler, serverSettingsCacheStore)) router.StaticFile("/mobile", filepath.Join(config.StaticRootPath, "mobile.html"))