Skip to content

Commit

Permalink
fix: override default iframe border so it's really hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
David Del Prado committed Sep 17, 2020
1 parent 3e262b9 commit a2c90e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default {
printFrame.setAttribute('style', 'width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0')
} else {
// Hide the iframe in other browsers
printFrame.setAttribute('style', 'visibility: hidden; height: 0; width: 0; position: absolute;')
printFrame.setAttribute('style', 'visibility: hidden; height: 0; width: 0; position: absolute; border: 0')
}

// Set iframe element id
Expand Down

0 comments on commit a2c90e7

Please sign in to comment.