mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-01 09:14:27 +08:00
Fix Cookie Popup from appearing in Screenshots (#4426) sanidhyas3s
This commit is contained in:
parent
9881800175
commit
080732c092
1 changed files with 4 additions and 1 deletions
|
@ -384,7 +384,10 @@ export async function screenshot(): Promise<void> {
|
|||
let revealReplay = false;
|
||||
|
||||
let revertCookie = false;
|
||||
if (Misc.isElementVisible("#cookiePopupWrapper")) {
|
||||
if (
|
||||
Misc.isElementVisible("#cookiePopupWrapper") ||
|
||||
document.contains(document.querySelector("#cookiePopupWrapper"))
|
||||
) {
|
||||
revertCookie = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue