From f0f2864b33d79ec7173a5446e40cf00557cfea1e Mon Sep 17 00:00:00 2001 From: Fairy-Phy Date: Sat, 11 Nov 2023 16:18:13 +0900 Subject: [PATCH] fix reload event --- packages/frontend/src/boot/main-boot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/boot/main-boot.ts b/packages/frontend/src/boot/main-boot.ts index 3a9a20f6d0..eb3584b901 100644 --- a/packages/frontend/src/boot/main-boot.ts +++ b/packages/frontend/src/boot/main-boot.ts @@ -282,7 +282,7 @@ export async function mainBoot() { // プラグインに変更が入ったら自動でリロードする stream.useChannel('main').on('registryUpdated', ({ scope, key }: { scope: string[], key: string, value: any }) => { - if (scope[0] === 'client' && key === 'plugins') { + if (scope.length === 1 && scope[0] === 'client' && key === 'plugins') { unisonReload(); } });