tchakabam / flashdetect Goto Github PK
View Code? Open in Web Editor NEWDetects the presence and version of the Shockwave Flash plugin
Detects the presence and version of the Shockwave Flash plugin
I installed OperaBrowser and it is the only browser where FlashDetect does not detect the user settings of the browser.
So in this scenario: Flash installed (windows), Opera Settings set to 'Block execution of Flash in sites',
the FlashDetect returns FlashDetect.installed: true. The rest of current browsers (IE, Firefox, Safari and Chrome) detect this user settings and return FlashDetect.installed: false.
Could you please help me to fix the library to include this case for Opera?
In Github the package.json says 1.0.4, but in NPM says the latest is 1.1.1. The code I'm getting when I install by NPM is significantly different from here. Plus, I'm getting some error trying to concat flashDetect with my files. The UMD bootstrap don't prevent the use of global variable (I'm talking about the repository version).
Hello, William!
I try to use your flash-detect module.
This error I've got after "npm install flash-detect" and ">DEBUG=kub.node ./bin/www" on my server:
/home/httpd/mydomain.com/content/html/adserve.njs/kub.node/node_modules/flash-detect/FlashDetect.js:167
if(navigator.plugins && navigator.plugins.length>0){
^
ReferenceError: navigator is not defined
at /home/httpd/mydomain.com/content/html/adserve.njs/kub.node/node_modules/flash-detect/FlashDetect.js:167:12
at new FlashDetect (/home/httpd/mydomain.com/content/html/adserve.njs/kub.node/node_modules/flash-detect/FlashDetect.js:198:6)
at Object. (/home/httpd/mydomain.com/content/html/adserve.njs/kub.node/routes/index.js:12:13)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/httpd/mydomain.com/content/html/adserve.njs/kub.node/app.js:8:14)
What are you thinking about it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.