mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-10 13:26:07 +08:00
only showing video ad button if ads are "on" or "sellout"
This commit is contained in:
parent
2159b7dc33
commit
5a3773da69
1 changed files with 5 additions and 0 deletions
|
|
@ -635,6 +635,11 @@ export async function update(
|
|||
} else {
|
||||
$("#result .loginTip").removeClass("hidden");
|
||||
}
|
||||
if (Config.ads === "off" || Config.ads === "result") {
|
||||
$("#result #watchVideoAdButton").addClass("hidden");
|
||||
} else {
|
||||
$("#result #watchVideoAdButton").removeClass("hidden");
|
||||
}
|
||||
updateWpmAndAcc();
|
||||
updateConsistency();
|
||||
updateTime();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue