Removed runThePopup

This commit is contained in:
NDevTK
2022-05-19 18:49:45 +01:00
committed by Ajay
parent b5482b6527
commit afee681575
2 changed files with 1 additions and 11 deletions

View File

@@ -5,8 +5,6 @@ import { ContentContainer, Keybind } from "./types";
import Utils from "./utils"; import Utils from "./utils";
const utils = new Utils(); const utils = new Utils();
import runThePopup from "./popup";
import PreviewBar, {PreviewBarSegment} from "./js-components/previewBar"; import PreviewBar, {PreviewBarSegment} from "./js-components/previewBar";
import SkipNotice from "./render/SkipNotice"; import SkipNotice from "./render/SkipNotice";
import SkipNoticeComponent from "./components/SkipNoticeComponent"; import SkipNoticeComponent from "./components/SkipNoticeComponent";
@@ -1725,9 +1723,6 @@ function openInfoMenu() {
} }
parentNode.insertBefore(popup, parentNode.firstChild); parentNode.insertBefore(popup, parentNode.firstChild);
//run the popup init script
runThePopup(messageListener);
} }
function closeInfoMenu() { function closeInfoMenu() {

View File

@@ -831,9 +831,4 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
//end of function //end of function
} }
if (chrome.tabs != undefined) { runThePopup();
//this means it is actually opened in the popup
runThePopup();
}
export default runThePopup;