Skip to content

Commit

Permalink
Update: adding the headerElement option to Preview.show (#846)
Browse files Browse the repository at this point in the history
* Update: adding the headerElement option to Preview.show

* Update: remove container fallback
  • Loading branch information
Conrad Chan authored Oct 2, 2018
1 parent 5137a01 commit 70eae04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,9 @@ class Preview extends EventEmitter {
// Show or hide the header
this.options.header = options.header || 'light';

// Header element for when using external header outside of the provided container
this.options.headerElement = options.headerElement;

// Custom logo URL
this.options.logoUrl = options.logoUrl || '';

Expand Down

0 comments on commit 70eae04

Please sign in to comment.