Merge pull request #12 from mutschler/mutschler-patch-1

fix: open metube tab after clicking on extension icon
This commit is contained in:
Виктор Диктор 2023-11-20 10:26:09 +03:00 committed by GitHub
commit 84bafb56a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
});