diff options
author | Maxim Devaev <[email protected]> | 2022-10-08 06:09:33 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-10-08 06:09:33 +0300 |
commit | a39d3dffbe837c15576615656df5a924bcd44831 (patch) | |
tree | 407258ff32ac271ec2ccf6069a00e56ce1f04722 /web/share/js/wm.js | |
parent | 16d9c3815f5bb5ba98f0923efc9f0fad8e2f48a2 (diff) |
pikvm/pikvm#803: Ability to use LEDs in GPIO title
Diffstat (limited to 'web/share/js/wm.js')
-rw-r--r-- | web/share/js/wm.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/share/js/wm.js b/web/share/js/wm.js index 51f6c01a..20ea0805 100644 --- a/web/share/js/wm.js +++ b/web/share/js/wm.js @@ -344,8 +344,9 @@ function __WindowManager() { var __globalMouseButtonHandler = function(event) { if ( - event.target.matches && !event.target.matches(".menu-button") - && event.target.closest && !event.target.closest(".modal") + event.target.closest + && !event.target.closest(".menu-button") + && !event.target.closest(".modal") ) { for (let el_item = event.target; el_item && el_item !== document; el_item = el_item.parentNode) { if (el_item.hasAttribute("data-force-hide-menu")) { |