From 52b30ce1ba6748c1d0a0f8697df3e66c53b2c315 Mon Sep 17 00:00:00 2001
From: Andrew Kim <andrewdkim@users.noreply.github.com>
Date: Mon, 8 Apr 2019 17:06:24 -0400
Subject: Timeline Grapical Change

---
 src/client/views/nodes/PDFBox.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/client/views/nodes/PDFBox.tsx')

diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx
index 28a1f9757..4682753d7 100644
--- a/src/client/views/nodes/PDFBox.tsx
+++ b/src/client/views/nodes/PDFBox.tsx
@@ -151,6 +151,7 @@ export class PDFBox extends React.Component<FieldViewProps> {
      */
     makeEditableAndHighlight = (colour: string) => {
         var range, sel = window.getSelection();
+        if (sel) {
         if (sel.rangeCount && sel.getRangeAt) {
             range = sel.getRangeAt(0);
         }
@@ -189,7 +190,7 @@ export class PDFBox extends React.Component<FieldViewProps> {
             }
             this._pageInfo.divs.push(obj);
 
-        }
+        }}
         document.designMode = "off";
     }
 
-- 
cgit v1.2.3-70-g09d2

