fix(tabs): lock automation to selected window

This commit is contained in:
朴圣佑
2026-05-12 11:06:56 +08:00
parent ec3c3808e6
commit 2bb34f9064
13 changed files with 682 additions and 36 deletions
+4 -1
View File
@@ -1618,7 +1618,10 @@ async function changeIpProxyExitBySession(options = {}) {
async function probeIpProxyExit(options = {}) {
const { silent = false } = options;
const response = await chrome.runtime.sendMessage({
const sendMessage = typeof sendSidepanelMessage === 'function'
? sendSidepanelMessage
: (message) => chrome.runtime.sendMessage(message);
const response = await sendMessage({
type: 'PROBE_IP_PROXY_EXIT',
source: 'sidepanel',
payload: {},