mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-18 14:55:34 +08:00
stopping breakpoint functions if ads are disabled or not initialised
This commit is contained in:
parent
1d7acdfc20
commit
5be6321a96
1 changed files with 2 additions and 0 deletions
|
|
@ -104,6 +104,7 @@ function updateBreakpoint(noReinstate = false): void {
|
|||
widerThanBreakpoint = false;
|
||||
}
|
||||
if (noReinstate) return;
|
||||
if (Config.ads === "off" || !initialised) return;
|
||||
if (beforeUpdate !== widerThanBreakpoint) {
|
||||
if (choice === "eg") {
|
||||
EG.reinstate();
|
||||
|
|
@ -123,6 +124,7 @@ function updateBreakpoint2(noReinstate = false): void {
|
|||
widerThanBreakpoint2 = false;
|
||||
}
|
||||
if (noReinstate) return;
|
||||
if (Config.ads === "off" || !initialised) return;
|
||||
if (beforeUpdate !== widerThanBreakpoint2) {
|
||||
PW.reinstate();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue