dr-niels-browser-detector
v1.0.4
Published
a component to detect the browser user is using
Downloads
7
Readme
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.
<browser-detector>
Browser Detector
A component to detect the browser user is using in Polymer 2.0
Installation
$ bower install --save gauravkk22/browser-detector
Using the component
<browser-detector></browser-detector>
##Usage
<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.
##Contributing
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
##License
MIT License