1
0
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:
Vincent Voyer 2015-05-24 22:41:24 +02:00
parent a6b2d702d2
commit 63591da04c

View File

@ -1,5 +1,8 @@
!function (name, definition) { !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 if (typeof define == 'function' && define.amd) define(definition)
else this[name] = definition() else this[name] = definition()
}('bowser', function () { }('bowser', function () {