diff --git a/browser/main/index.js b/browser/main/index.js index c8a72e9c0..07774fa6e 100644 --- a/browser/main/index.js +++ b/browser/main/index.js @@ -24,6 +24,7 @@ document.addEventListener('dragover', function (e) { }) document.addEventListener('click', function (e) { + if (!e.target.className) return const isInfoButton = e.target.className.includes('infoButton') const isInfoPanel = e.target.offsetParent.className.includes('infoPanel') if (isInfoButton || isInfoPanel) return