Skip to content

Commit 84643b3

Browse files
committed
fix(popup): play and queue all button works again
1 parent 09ecea2 commit 84643b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

popup/popup.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,13 +479,14 @@ const openVideo = (video, inNewTab, callback) => {
479479
};
480480

481481
const openNewTab = (video, callback) => {
482-
chrome.tabs.create({ url: video.url }, (tab) => {
482+
chrome.tabs.create({ url: video.url, active: false }, (tab) => {
483483
chrome.runtime.sendMessage({
484484
newTab: true,
485485
url: video.url,
486486
tabID: tab.id,
487487
winID: winID,
488488
});
489+
chrome.tabs.update(tab.id, { active: true });
489490
if (callback) { callback(tab.id); }
490491
});
491492
};

0 commit comments

Comments
 (0)