mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-29 19:01:44 +00:00
16 lines
461 B
TypeScript
16 lines
461 B
TypeScript
import type { OpenClawConfig } from "openclaw/plugin-sdk/browser-support";
|
|
import {
|
|
normalizePluginsConfig,
|
|
resolveEffectiveEnableState,
|
|
} from "openclaw/plugin-sdk/browser-support";
|
|
|
|
export function isDefaultBrowserPluginEnabled(cfg: OpenClawConfig): boolean {
|
|
return resolveEffectiveEnableState({
|
|
id: "browser",
|
|
origin: "bundled",
|
|
config: normalizePluginsConfig(cfg.plugins),
|
|
rootConfig: cfg,
|
|
enabledByDefault: true,
|
|
}).enabled;
|
|
}
|