CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
ProdigyPNP

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: ProdigyPNP/ProdigyMathGameHacking
Path: blob/master/cheatGUI/src/utils/popupCloser.ts
Views: 723
1
import { _ } from "../utils/util"; // Import prodigy thing
2
3
4
5
var PopupCloser : boolean = false;
6
7
8
export function PopupInterval (OnOff : boolean) {
9
10
PopupCloser = OnOff;
11
}
12
13
14
15
(async () => {
16
17
setInterval(async () => {
18
if (PopupCloser) {
19
_.instance.prodigy.open.menuCloseAll();
20
}
21
}, 200);
22
23
})();
24