1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Merge pull request #170 from voronianski/patch-1

fix global exports
This commit is contained in:
Denis Demchenko 2016-12-05 22:40:01 +02:00 committed by GitHub
commit f249e67e4e

View File

@ -4,11 +4,11 @@
* MIT License | (c) Dustin Diaz 2015
*/
!function (name, definition) {
!function (root, name, definition) {
if (typeof module != 'undefined' && module.exports) module.exports = definition()
else if (typeof define == 'function' && define.amd) define(name, definition)
else this[name] = definition()
}('bowser', function () {
else root[name] = definition()
}(this, 'bowser', function () {
/**
* See useragents.js for examples of navigator.userAgent
*/