Skip to content

Commit e404946

Browse files
authored
Merge pull request #36 from modos189/fix/plugin_event2
Fix plugin_event event: core script update should always trigger the event
2 parents 8b86499 + cd67c20 commit e404946

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lib-iitc-manager",
3-
"version": "1.9.2",
3+
"version": "1.9.3",
44
"description": "Library for managing IITC plugins",
55
"main": "src/index.js",
66
"type": "module",

src/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ export class Worker {
697697
}
698698

699699
// Updating a disabled plugin should not trigger the event
700-
if (event !== 'remove' && plugins[uid]?.status !== 'on') {
700+
if (!isCore && event !== 'remove' && plugins[uid]?.status !== 'on') {
701701
delete plugins[uid];
702702
}
703703
}

0 commit comments

Comments
 (0)