Skip to content

Commit

Permalink
Fix: Bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodsum committed Oct 16, 2018
1 parent 6056334 commit 0d11ec0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Annotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
ANNOTATOR_EVENT,
CONTROLLER_EVENT,
CLASS_ANNOTATIONS_LOADED,
SELECTOR_BOX_PREVIEW_HEADER_CONTAINER
SELECTOR_BOX_PREVIEW_HEADER
} from './constants';
import FileVersionAPI from './api/FileVersionAPI';

Expand Down Expand Up @@ -101,7 +101,7 @@ class Annotator extends EventEmitter {
init(initialScale = 1) {
// Get the container dom element if selector was passed, in tests
this.container = this.options.container;
if (typeof this.options.container === 'string') {
if (typeof this.container === 'string') {
this.container = document.querySelector(this.container);
}

Expand All @@ -114,7 +114,7 @@ class Annotator extends EventEmitter {
// If using box content preview header and no external header element was specified,
// fallback to the container element
if (this.options.header !== 'none' && !this.headerElement) {
this.headerElement = this.container.querySelector(SELECTOR_BOX_PREVIEW_HEADER_CONTAINER);
this.headerElement = this.container.querySelector(SELECTOR_BOX_PREVIEW_HEADER);
}

if (!this.container) {
Expand Down

0 comments on commit 0d11ec0

Please sign in to comment.