web-intents.js 899 B

12345678910111213141516171819202122
  1. /*!
  2. {
  3. "name": "Web Intents",
  4. "property": "webintents",
  5. "authors": ["Eric Bidelman"],
  6. "notes": [{
  7. "name": "Web Intents project site",
  8. "href": "http://www.webintents.org/"
  9. }],
  10. "polyfills": ["webintents"],
  11. "builderAliases": ["web_intents"]
  12. }
  13. !*/
  14. /* DOC
  15. Detects native support for the Web Intents APIs for service discovery and inter-application communication.
  16. Chrome added support for this in v19, but [removed it again in v24](https://lists.w3.org/Archives/Public/public-web-intents/2012Nov/0000.html) because of "a number of areas for
  17. development in both the API and specific user experience in Chrome". No other browsers currently support it, however a [JavaScript shim](http://www.webintents.org/#javascriptshim) is available.
  18. */
  19. define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
  20. Modernizr.addTest('webintents', !!prefixed('startActivity', navigator));
  21. });