Comments (9)
You are right. The docs should say that this is actually an object.
You can do if (Browser.Plugins.Flash){ doSomething(); }
Please fix it and send us a pull request :)
from mootools-core.
By fix it's: press fork button on github, find the right markdown file (Docs/Browser/Browser.md) on github, click "edit file" and fix it on github, press the pull request button on github.
Did i mention github is pretty nice?
from mootools-core.
@arian: too many steps. simply navigate to the file on the mootools repo, click the button "Fork and edit this file."
from mootools-core.
okay, I'll make the modification to the documentation tomorrow.
from mootools-core.
Thanks ;P that was quick.
from mootools-core.
By "tomorrow", I apparently meant "15 minutes from now". I've made the documentation change.
@cpojer --just as a note, the code you wrote is incorrect --an iPad will still see Browser.Plugins.Flash as truthy, so you must do
if (Browser.Plugins.Flash.version !== 0) {
alert('Flash is installed');
}
from mootools-core.
Way ahead of you.
from mootools-core.
Oh yeah, you are right. Flash is dead tho :P
from mootools-core.
alas, the client still needed SlideShowPro (and therefore Flash)... Should probably just use its xml file from now on and serve that business with javascript.
from mootools-core.
Related Issues (20)
- Update Array.prototype.flatten to match TC39 proposal HOT 13
- Deprecate MooTools? HOT 9
- creating 404 error for video preroll ad on adding just library. HOT 8
- Change this repo title to HTTPS HOT 7
- Conflict with ecmascript Map HOT 2
- Mootools + Google Maps V3 conflict issue causing google streetview not working. HOT 9
- Object.merge deletes EcmaScript Map Object HOT 4
- MooTools library conflicting with new Event(typeArg) HOT 3
- NS_ERROR_FAILURE XMLHttpRequest exception HOT 9
- Mootools.net down HOT 8
- [spam]
- [SPAM]
- Mootools + Google adsense
- GHSL-2020-345: seeking security contact for your project
- Digital Marketing Course
- spam
- node modules error HOT 3
- mootools.net down HOT 2
- Joomla 3. Recaptcha v2 always spin. HOT 1
- Z
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 mootools-core.