add inject content ui

This commit is contained in:
go0p
2026-08-06 15:11:35 +08:00
committed by go0p
parent 22f73e67e8
commit 7fe689202f
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: