- How can we check weather chrome has enabled Flash in Angular 2
- In chrome://Flags, there is a property 'Prefer HTML over Flash'. How can we read chrome://Flags properties?
Check whether Chrome has enabled Flash in Angular 2
164 views Asked by Hashim At
1
I'm not sure whether you can read the flags directly. You would also need to consider different browsers and how the code would affect them.
In the past I've used Modernizr for these kind of feature tests. Modernizr is a Javascript library that allows you to create tests and hide or enable specific parts of your website or webapp based on whether that feature exists.
https://modernizr.com/download?setclasses&q=flash
Quoted from the Modernizr site: