From 3771243b3cc2b52e7a07de4d8df95d82153b886d Mon Sep 17 00:00:00 2001 From: MacBook Date: Thu, 23 Apr 2026 08:35:14 +0200 Subject: [PATCH] fix: ensure routeToContent prioritizes saved target tab settings --- extension/background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/background.js b/extension/background.js index fdecbf8..03092e0 100644 --- a/extension/background.js +++ b/extension/background.js @@ -587,8 +587,8 @@ function updateLastAction(action, senderId, timestamp = Date.now()) { } async function routeToContent(action, payload) { - if (!currentTabId) { - const settings = await getSettings(); + const settings = await getSettings(); + if (settings.targetTabId) { currentTabId = settings.targetTabId; } if (!currentTabId) return;