Comments (7)
I've released 1.1.4 now, unknown versions will now be reported as '0.0.0'
, so if it's important to support this version you can use the catch-all isVersionSupported()
or a specific test for getVersion() === '0.0.0'
.
Thank you!
from swf-player-version.
Gah, thanks. I'll add a test for this too 👍
from swf-player-version.
why not use :
var plugin = navigator.plugins['Shockwave Flash'];
if(plugin){
detectedVersion = parseVersion(plugin.description);
}
from swf-player-version.
Need to check the navigator.mimeTypes
to determine whether the plugin is enabled or not (it still shows up as a plugin when disabled). navigator.plugins['Shockwave Flash']
should really be the same as navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin
. So your code should still return an invalid description for the plugin in FF51?
from swf-player-version.
In FF current version(52.0.2) they are the same, but in FF51 navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin and navigator.plugins['Shockwave Flash'] is not equal.
In ff51 navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin returnes the list of all plugins, not only flash ( there was a bug). But calling navigator.plugins['Shockwave Flash'] returned expected result.
from swf-player-version.
Oh okay then, yeah I'll have it read from that then instead 👍
from swf-player-version.
Reworked the detection so it reads from the plugins-plugin instead, thanks a lot!
from swf-player-version.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swf-player-version.