use indexedDB manager proxySwitch

This commit is contained in:
go0p
2025-03-04 16:07:14 +08:00
parent 1e25561fae
commit 6f82842c92
23 changed files with 1542 additions and 753 deletions
+12
View File
@@ -9,6 +9,18 @@ const websocketManager = new WebSocketManager();
// 设置代理处理器
setupProxyHandlers();
// 添加点击事件处理
chrome.action.onClicked.addListener((tab) => {
// 打开侧边栏
chrome.sidePanel.open({ windowId: tab.windowId });
});
// 可选:设置默认打开状态
chrome.sidePanel.setOptions({
enabled: true,
path: 'index.html'
});
chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {
console.log("msg", msg)
switch (msg.action) {