chrome-cmd
Version:
Control Chrome from the command line - List tabs, execute JavaScript, and more
16 lines (15 loc) • 484 B
JavaScript
import { APP_NAME, BRIDGE_APP_NAME } from "../shared/constants/constants.js";
import { isDev } from "../shared/utils/functions/is-development-env.js";
function createBridgeManifest(bridgePath, allowedOrigins) {
return {
name: BRIDGE_APP_NAME,
// needs to be the same name for prod/dev mode
description: `${APP_NAME} Bridge${isDev() ? " (DEV)" : ""}`,
path: bridgePath,
type: "stdio",
allowed_origins: allowedOrigins
};
}
export {
createBridgeManifest
};