mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-31 13:08:15 +00:00
fix: ensure routeToContent prioritizes saved target tab settings
This commit is contained in:
@@ -587,8 +587,8 @@ function updateLastAction(action, senderId, timestamp = Date.now()) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function routeToContent(action, payload) {
|
async function routeToContent(action, payload) {
|
||||||
if (!currentTabId) {
|
const settings = await getSettings();
|
||||||
const settings = await getSettings();
|
if (settings.targetTabId) {
|
||||||
currentTabId = settings.targetTabId;
|
currentTabId = settings.targetTabId;
|
||||||
}
|
}
|
||||||
if (!currentTabId) return;
|
if (!currentTabId) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user