This commit is contained in:
Edward Silverton 2023-09-18 16:25:57 -04:00 committed by GitHub
commit 55fab39d50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,6 +245,11 @@ $.Viewer = function( options ) {
} }
this.element = this.element || document.getElementById( this.id ); this.element = this.element || document.getElementById( this.id );
if (!this.element) {
return;
}
this.canvas = $.makeNeutralElement( "div" ); this.canvas = $.makeNeutralElement( "div" );
this.canvas.className = "openseadragon-canvas"; this.canvas.className = "openseadragon-canvas";