diff --git a/src/dashboard/src/config/pwa.ts b/src/dashboard/src/config/pwa.ts index e9e206de..f8528200 100644 --- a/src/dashboard/src/config/pwa.ts +++ b/src/dashboard/src/config/pwa.ts @@ -3,10 +3,7 @@ import { VitePWA } from 'vite-plugin-pwa' export default VitePWA({ registerType: 'autoUpdate', injectRegister: 'inline', - workbox: { - globPatterns: ['**/*.{js,css,html,ico,png,svg}'], - }, - includeAssets: ['favicon.ico', 'apple-touch-icon.png'], + includeAssets: ['favicon.ico'], manifest: { name: 'GoOpemBmclApi Dashboard', short_name: 'GoOpemBmclApiDashboard', @@ -37,4 +34,7 @@ export default VitePWA({ }, ], }, + workbox: { + globPatterns: ['**/*.{js,css,html,ico,png,svg,woff2}'], + }, }) diff --git a/src/handler.go b/src/handler.go index 6a3cff50..fbf42da6 100644 --- a/src/handler.go +++ b/src/handler.go @@ -61,7 +61,6 @@ func (cr *Cluster) GetHandler() (handler http.Handler) { } }) go func() { - defer close(totalUsedCh) <-cr.WaitForEnable() disabled := cr.Disabled() var (