From 9900aaf167fbed86276d690cc53c92efabf599e8 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Sat, 7 Jan 2023 03:04:48 +0100 Subject: [PATCH] use document selector to check whether any dialog is opened --- client/scripts/ui.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/client/scripts/ui.js b/client/scripts/ui.js index 28946d5..ce0add5 100644 --- a/client/scripts/ui.js +++ b/client/scripts/ui.js @@ -68,17 +68,7 @@ class PeersUI { } _onPaste(e) { - const dialogNodes = document.querySelectorAll('x-dialog'); - let dialogIsOpen = false - dialogNodes.forEach(function (dialogNode) { - for(let i=0; i