Created
October 9, 2019 04:53
This file contains hidden or 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
isFlashEnabled() | |
{ | |
var hasFlash = false; | |
try | |
{ | |
var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash'); | |
if(fo) hasFlash = true; | |
} | |
catch(e) | |
{ | |
if(navigator.mimeTypes ["application/x-shockwave-flash"] != undefined) hasFlash = true; | |
} | |
console.log(hasFlash); | |
return hasFlash; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
get pop in string
show image
typescript
let name = this.getPropFromJSON("packetbase64", test); name = name.replace('"', '').replace('"', ''); console.log(name); this.testBase64 = 'data:image/jpg;base64,' + (this.sanitizer.bypassSecurityTrustResourceUrl(name) as any).changingThisBreaksApplicationSecurity;
Image
<img [src]="testBase64" alt="">