From 7574f3d018e04f2a56b2a2a1d79630b77baa5475 Mon Sep 17 00:00:00 2001 From: zyxkad Date: Sat, 16 Dec 2023 08:23:40 -0700 Subject: [PATCH] do not close the channel --- src/dashboard/src/config/pwa.ts | 8 ++++---- src/handler.go | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) 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 (