From 40245cd179ac0544e3a21e1b56ead73475e90cc8 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Fri, 19 Mar 2021 18:24:33 -0400
Subject: added stuff to WebBox so that it will work with Firefox browsers
 (which have the benefit of rendering web pages without blur the way Chrome
 does on windows)

---
 src/client/views/MainView.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/client/views/MainView.tsx')

diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index 4444a3944..71bff86c4 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -193,8 +193,8 @@ export class MainView extends React.Component {
         document.addEventListener("pointerdown", this.globalPointerDown);
         document.addEventListener("click", (e: MouseEvent) => {
             if (!e.cancelBubble) {
-                const pathstr = (e as any)?.path.map((p: any) => p.classList?.toString()).join();
-                if (pathstr.includes("libraryFlyout")) {
+                const pathstr = (e as any)?.path?.map((p: any) => p.classList?.toString()).join();
+                if (pathstr?.includes("libraryFlyout")) {
                     SelectionManager.DeselectAll();
                 }
             }
-- 
cgit v1.2.3-70-g09d2

