Skip to content

Commit

Permalink
Update background.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xifangczy committed Jul 31, 2024
1 parent 8a2ba88 commit d85a7f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ chrome.runtime.onMessage.addListener(function (Message, sender, sendResponse) {
chrome.tabs.query({ url: G.ffmpegConfig.url }, function (tabs) {
if (chrome.runtime.lastError || !tabs.length) {
chrome.tabs.create({ url: G.ffmpegConfig.url, active: Message.active ?? true }, function (tab) {
if(chrome.runtime.lastError){return;}
G.ffmpegConfig.tab = tab.id;
G.ffmpegConfig.data = data;
});
Expand Down

0 comments on commit d85a7f4

Please sign in to comment.