From d85a7f45058f506f5de2f7ae8bcd9ea7f9548b94 Mon Sep 17 00:00:00 2001 From: O2bmm Date: Thu, 1 Aug 2024 02:19:49 +0800 Subject: [PATCH] Update background.js --- js/background.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/background.js b/js/background.js index e491d628..f79a1f8a 100644 --- a/js/background.js +++ b/js/background.js @@ -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; });