From afee6815751f0cd2e4c9a554daced584eca2f116 Mon Sep 17 00:00:00 2001 From: NDevTK <31563761+NDevTK@users.noreply.github.com> Date: Thu, 19 May 2022 18:49:45 +0100 Subject: [PATCH] Removed runThePopup --- src/content.ts | 5 ----- src/popup.ts | 7 +------ 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/content.ts b/src/content.ts index 32be9609..d7caa944 100644 --- a/src/content.ts +++ b/src/content.ts @@ -5,8 +5,6 @@ import { ContentContainer, Keybind } from "./types"; import Utils from "./utils"; const utils = new Utils(); -import runThePopup from "./popup"; - import PreviewBar, {PreviewBarSegment} from "./js-components/previewBar"; import SkipNotice from "./render/SkipNotice"; import SkipNoticeComponent from "./components/SkipNoticeComponent"; @@ -1725,9 +1723,6 @@ function openInfoMenu() { } parentNode.insertBefore(popup, parentNode.firstChild); - - //run the popup init script - runThePopup(messageListener); } function closeInfoMenu() { diff --git a/src/popup.ts b/src/popup.ts index ae4a40c8..e97559cc 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -831,9 +831,4 @@ async function runThePopup(messageListener?: MessageListener): Promise { //end of function } -if (chrome.tabs != undefined) { - //this means it is actually opened in the popup - runThePopup(); -} - -export default runThePopup; +runThePopup();