diff --git a/package.json b/package.json index 875be26..218fe4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rubick", - "version": "4.0.7", + "version": "4.0.8", "author": "muwoo <2424880409@qq.com>", "private": true, "scripts": { diff --git a/src/main/common/api.ts b/src/main/common/api.ts index 792f02f..d8104d4 100644 --- a/src/main/common/api.ts +++ b/src/main/common/api.ts @@ -222,7 +222,7 @@ class API extends DBInstance { } public getFeatures() { - return this.currentPlugin.features; + return this.currentPlugin?.features; } public setFeature({ data }, window) {