add inject content ui

This commit is contained in:
go0p
2025-03-04 16:07:15 +08:00
parent 35184f4b25
commit 5066e9d89a
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: