fix reload event

This commit is contained in:
Fairy-Phy 2023-11-11 16:18:13 +09:00
parent 246e48656e
commit f0f2864b33
No known key found for this signature in database
GPG Key ID: 53E58673D5961DB5
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
});