page-action-cache 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import { browserActionExecutor } from './browser-action-executor.js';
|
|
|
12
12
|
export function register(api) {
|
|
13
13
|
console.log('[PageActionCache] Initializing extension...');
|
|
14
14
|
// 获取插件配置
|
|
15
|
-
const config = (api.getConfig?.()
|
|
15
|
+
const config = (api.getConfig?.() ?? {});
|
|
16
16
|
const enabled = config.enabled !== false;
|
|
17
17
|
if (!enabled) {
|
|
18
18
|
console.log('[PageActionCache] Extension disabled by configuration');
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -37,7 +37,7 @@ export function register(api: OpenClawPluginApi): void {
|
|
|
37
37
|
console.log('[PageActionCache] Initializing extension...');
|
|
38
38
|
|
|
39
39
|
// 获取插件配置
|
|
40
|
-
const config = (api.getConfig?.()
|
|
40
|
+
const config = (api.getConfig?.() ?? {}) as PageActionCacheConfig;
|
|
41
41
|
const enabled = config.enabled !== false;
|
|
42
42
|
|
|
43
43
|
if (!enabled) {
|