Skip to content

Commit

Permalink
Fix: Disables annotations after 'load' event on shared links (#150)
Browse files Browse the repository at this point in the history
- Fixes issue where annotations cookieswitch causes preview to fail on shared folder
  • Loading branch information
pramodsum authored May 26, 2017
1 parent 2e512ed commit 77cf5bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/viewers/BaseViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
Expand Down

0 comments on commit 77cf5bb

Please sign in to comment.