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();