Skip to content

Commit

Permalink
Merge pull request #100 from anzap/base_tag_fix
Browse files Browse the repository at this point in the history
Support for base html tag
  • Loading branch information
broem authored Apr 11, 2021
2 parents 42b8fed + d88922b commit 9a9b2e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/ngx-print.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public returnStyleValues() {
@HostListener('click')
public print(): void {
let printContents, popupWin, styles = '', links = '';
const baseTag = this.getElementTag('base');

if(this.useExistingCss) {
styles = this.getElementTag('style');
Expand All @@ -142,6 +143,7 @@ public returnStyleValues() {
<html>
<head>
<title>${this.printTitle ? this.printTitle : ""}</title>
${baseTag}
${this.returnStyleValues()}
${this.returnStyleSheetLinkTags()}
${styles}
Expand Down

0 comments on commit 9a9b2e6

Please sign in to comment.