add inject content ui

This commit is contained in:
go0p
2025-03-02 15:31:20 +08:00
parent b08a806ce7
commit fd275d5e7d
6 changed files with 663 additions and 67 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
import {ActionType, injectScriptAndSendMessage, WebSocketManager} from './socket.js';
import { setupProxyHandlers } from './proxy.js';
import { ProxyActionType } from './types/action.js';
console.info("Chrome Extension Background is loaded");
@@ -25,7 +24,7 @@ chrome.sidePanel.setOptions({
console.error('Error setting side panel options:', error);
});
chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {
chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => {
console.log("msg", msg)
switch (msg.action) {
case ActionType.CONNECT: