Skip to content

Commit

Permalink
Update src/UniversalViewer.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Demian Katz <[email protected]>
  • Loading branch information
edsilv and demiankatz authored Jan 16, 2025
1 parent 2dd4144 commit 1d9729a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UniversalViewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class UniversalViewer extends BaseContentHandler<IUVData<any>> {
if (contentType === ContentType.UNKNOWN) {
console.error("Unknown content type");
} else if (handlerChanged) {
this.contentType = contentType; // set content type
this.contentType = this._contentType = contentType; // set content type
this.assignedContentHandler?.dispose(); // dispose previous content handler
const m = await ContentHandler[contentType](); // import content handler
this.showSpinner(); // show spinner
Expand Down

0 comments on commit 1d9729a

Please sign in to comment.