Coder Social home page Coder Social logo

Comments (7)

syranide avatar syranide commented on July 27, 2024 1

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.

syranide avatar syranide commented on July 27, 2024

Gah, thanks. I'll add a test for this too 👍

from swf-player-version.

gnunua avatar gnunua commented on July 27, 2024

why not use :

var plugin = navigator.plugins['Shockwave Flash'];
if(plugin){
detectedVersion = parseVersion(plugin.description);
}

from swf-player-version.

syranide avatar syranide commented on July 27, 2024

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.

gnunua avatar gnunua commented on July 27, 2024

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.

syranide avatar syranide commented on July 27, 2024

Oh okay then, yeah I'll have it read from that then instead 👍

from swf-player-version.

syranide avatar syranide commented on July 27, 2024

Reworked the detection so it reads from the plugins-plugin instead, thanks a lot!

from swf-player-version.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.