Created
November 14, 2018 02:31
-
-
Save oleersoy/f3fa6e4af91681ebc64f1fcf2fac746c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private supportsSvg; | |
private hasHtml5FileApiSupport; | |
constructor(@Optional() @Inject(DOCUMENT) document: Document) { | |
this.hasHtml5FileApiSupport = w.File && w.FileReader && w.FileList && w.Blob; | |
this.supportsSvg = !!( | |
document && | |
document.createElementNS && | |
document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment