From 77cf5bb3c5042282359b22ac43ed2daf238e9c41 Mon Sep 17 00:00:00 2001 From: Sumedha Pramod Date: Fri, 26 May 2017 21:35:11 +0530 Subject: [PATCH] Fix: Disables annotations after 'load' event on shared links (#150) - Fixes issue where annotations cookieswitch causes preview to fail on shared folder --- src/lib/viewers/BaseViewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/viewers/BaseViewer.js b/src/lib/viewers/BaseViewer.js index 6f82e7a58..7c9114f18 100644 --- a/src/lib/viewers/BaseViewer.js +++ b/src/lib/viewers/BaseViewer.js @@ -292,7 +292,7 @@ const RESIZE_WAIT_TIME_IN_MILLIS = 300; }); this.addListener('load', () => { - if (this.areAnnotationsEnabled()) { + if (this.annotationsPromise) { this.annotationsPromise.then(this.loadAnnotator); } });