From 1938dfb49093bf69b5081b0ea32cf11b38aa6079 Mon Sep 17 00:00:00 2001 From: makaveli10 Date: Wed, 18 Oct 2023 16:52:07 +0200 Subject: [PATCH] remove irrelevant reload --- Audio-Transcription-Chrome/background.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Audio-Transcription-Chrome/background.js b/Audio-Transcription-Chrome/background.js index 8f51b67..f860209 100644 --- a/Audio-Transcription-Chrome/background.js +++ b/Audio-Transcription-Chrome/background.js @@ -207,13 +207,3 @@ chrome.runtime.onMessage.addListener(async (message) => { }); -/** - * Listens for if the tab is reloaded. - * @param {Object} message - The message received from the runtime. - */ -chrome.tabs.onUpdated.addListener(async (tabId, changeInfo, tab) => { - if (changeInfo.status === 'complete') { - await executeScriptInTab(tabId, "content.js"); - await delayExecution(500); - } -});