mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
fix: exports both as global and browser props
This commit is contained in:
parent
a6b2d702d2
commit
63591da04c
@ -1,5 +1,8 @@
|
||||
!function (name, definition) {
|
||||
if (typeof module != 'undefined' && module.exports) module.exports = definition()
|
||||
if (typeof module != 'undefined' && module.exports) {
|
||||
module.exports = definition()
|
||||
module.exports['browser'] = definition()
|
||||
}
|
||||
else if (typeof define == 'function' && define.amd) define(definition)
|
||||
else this[name] = definition()
|
||||
}('bowser', function () {
|
||||
|
Loading…
Reference in New Issue
Block a user