JohnMunsch/PaperQuik

View on GitHub
app/bower_components/conditionizr/detects/chrome.js

Summary

Maintainability
A
35 mins
Test Coverage
/*!
 * Chrome
 * We return `!!window.chrome` to test the truthy value,
 * but Opera 14+ responds true to this, so we need to test
 * the `navigator.vendor` to make sure it's from Google
 */
conditionizr.add('chrome', function () {
  return !!window.chrome && /google/i.test(navigator.vendor);
});