fix reload event
This commit is contained in:
parent
246e48656e
commit
f0f2864b33
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue