mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-23 00:04:06 +00:00
[bugfix] remove await from service worker registration to prevent blocking app mount
The await was causing the app to hang on deployment with a white screen because the service worker registration promise was not resolving. Changed back to void import() to allow the app to mount immediately while service worker registration happens in the background.
This commit is contained in:
@@ -5,5 +5,5 @@ import { isCloud } from '@/platform/distribution/types'
|
||||
* Tree-shaken for desktop/localhost builds via compile-time constant.
|
||||
*/
|
||||
if (isCloud) {
|
||||
await import('./register')
|
||||
void import('./register')
|
||||
}
|
||||
|
||||
@@ -54,4 +54,4 @@ function setupCacheInvalidation(): void {
|
||||
})
|
||||
}
|
||||
|
||||
await registerAuthServiceWorker()
|
||||
void registerAuthServiceWorker()
|
||||
|
||||
Reference in New Issue
Block a user