This is a conversion of the browser-detector element from gauravkk22 (https://github.com/gauravkk22/browser-detector) with some minor adjustments. The readme was not updated and is still the one from the original browser-detector element! The original browser-detector was updated to Polymer 3 nowadays and is probably a better choice than this one.
A component to detect the browser user is using in Polymer 2.0
$ bower install --save gauravkk22/browser-detector
Using the component
<script src="../webcomponentsjs/webcomponents-lite.js"></script> <link rel="import" href="browser-detector.html"> <browser-detector>...</browser-detector>
This component is able to detect browsers like chrome, firefox, chrome, opera, edge, ie and blink and it is reflected and notified back to the attribute named browsername.
Fork it! Create your feature branch: git checkout -b my-new-feature Commit your changes: git commit -am 'Add some feature' Push to the branch: git push origin my-new-feature Submit a pull request :D