Skip to content

Commit

Permalink
Merge pull request #74 from AngularWizards/master
Browse files Browse the repository at this point in the history
update syntax to work in IE11
  • Loading branch information
broem committed May 1, 2020
2 parents fdb5fa0 + d18ec97 commit d27859e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ngx-print.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public returnStyleValues() {
<script defer>
function triggerPrint(event) {
window.removeEventListener('load', triggerPrint, false);
setTimeout(() => {
setTimeout(function() {
window.print();
setTimeout(function() { window.close(); }, 0);
}, ${this.printDelay});
Expand Down

0 comments on commit d27859e

Please sign in to comment.