fix: open metube tab after clicking on extension icon

This commit is contained in:
mutschler 2023-11-19 01:47:04 +01:00 committed by GitHub
parent d72cc84561
commit 0fb491c02e
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);
}
});