Skip to content

Commit

Permalink
feat(annotations): Allow annotations for editable shared links (#1462)
Browse files Browse the repository at this point in the history
  • Loading branch information
karelee7 authored and JChan106 committed Oct 25, 2022
1 parent 6b714c5 commit a25bc71
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/viewers/BaseViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,8 @@ class BaseViewer extends EventEmitter {
this.rootEl.classList.add(CLASS_BOX_PREVIEW_MOBILE);
}

// Creates a promise that the annotator will be constructed if annotations are
// enabled and the expiring embed is not a shared link
if (this.areAnnotationsEnabled() && !this.options.sharedLink) {
// Creates a promise that the annotator will be constructed if annotations are enabled
if (this.areAnnotationsEnabled()) {
this.annotatorPromise = new Promise(resolve => {
this.annotatorPromiseResolver = resolve;
});
Expand Down

0 comments on commit a25bc71

Please sign in to comment.