UNPKG

browser-agent-mcp

Version:

Chrome extension and MCP server for comprehensive browser automation with AI agents

33 lines (31 loc) 1.1 kB
/******/ (() => { // webpackBootstrap /******/ "use strict"; /*!**************************************!*\ !*** ./src/extension/popup/index.ts ***! \**************************************/ // Popup script for Browser Agent MCP extension document.addEventListener("DOMContentLoaded", async () => { const statusElement = document.getElementById("status"); if (!statusElement) return; try { // Check if background script is running const response = await chrome.runtime.sendMessage({ type: "PING" }); if (response?.success) { statusElement.textContent = "Connected to MCP Server"; statusElement.className = "status connected"; } else { statusElement.textContent = "MCP Server Disconnected"; statusElement.className = "status disconnected"; } } catch (error) { statusElement.textContent = "Extension Error"; statusElement.className = "status disconnected"; console.error("Popup error:", error); } }); /******/ })() ; //# sourceMappingURL=popup.js.map