Merge pull request #12 from mutschler/mutschler-patch-1
fix: open metube tab after clicking on extension icon
This commit is contained in:
commit
84bafb56a0
|
|
@ -80,7 +80,7 @@ chrome.action.onClicked.addListener(function (tab) {
|
||||||
// use this tab to get the youtube video URL
|
// use this tab to get the youtube video URL
|
||||||
let videoUrl = tabs[0].url;
|
let videoUrl = tabs[0].url;
|
||||||
sendVideoUrlToMetube(videoUrl, data.metube, data.defaultFormat, function () {
|
sendVideoUrlToMetube(videoUrl, data.metube, data.defaultFormat, function () {
|
||||||
if (!needToSwitch) {
|
if (needToSwitch) {
|
||||||
openTab(data.metube, tab);
|
openTab(data.metube, tab);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue