From 89f90306437881abb4fbd90b675c98353f60a23b Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 20 Mar 2022 11:57:54 +0100 Subject: [PATCH] also hide keep for notice toasts --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index bc5cbb0..fb4f4e6 100644 --- a/main.ts +++ b/main.ts @@ -114,7 +114,7 @@ export class KeepView extends ItemView { } private coveredByElement(): boolean { - let nodes = document.body.querySelectorAll(".modal-bg, .menu"); + let nodes = document.body.querySelectorAll(".modal-bg, .menu, .notice"); for (let i = 0; i < nodes.length; i++) { let rect = nodes[i].getBoundingClientRect(); if (rect.left < this.size.right && this.size.left < rect.right && rect.top < this.size.bottom && this.size.top < rect.bottom)