Fix Cookie Popup from appearing in Screenshots (#4426) sanidhyas3s

This commit is contained in:
Sanidhya Singh 2023-06-29 22:20:01 +05:30 committed by GitHub
parent 9881800175
commit 080732c092
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}