From 0fb491c02e5d4a1c25c94e17091fc9227424e9b0 Mon Sep 17 00:00:00 2001 From: mutschler Date: Sun, 19 Nov 2023 01:47:04 +0100 Subject: [PATCH] fix: open metube tab after clicking on extension icon --- src/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background.js b/src/background.js index cb4156e..4b85457 100644 --- a/src/background.js +++ b/src/background.js @@ -80,7 +80,7 @@ chrome.action.onClicked.addListener(function (tab) { // use this tab to get the youtube video URL let videoUrl = tabs[0].url; sendVideoUrlToMetube(videoUrl, data.metube, data.defaultFormat, function () { - if (!needToSwitch) { + if (needToSwitch) { openTab(data.metube, tab); } });