diff --git a/src/bowser.js b/src/bowser.js index 6942aea..cefeee2 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -1,5 +1,5 @@ !function (name, definition) { - if (typeof module != 'undefined' && module.exports) module.exports['browser'] = definition() + if (typeof module != 'undefined' && module.exports) module.exports = definition() else if (typeof define == 'function' && define.amd) define(definition) else this[name] = definition() }('bowser', function () { diff --git a/test/test.js b/test/test.js index ef881ef..c11e035 100644 --- a/test/test.js +++ b/test/test.js @@ -9,7 +9,7 @@ var g , ua , p , assert = require('assert') - , browser = require('../src/bowser').browser + , browser = require('../src/bowser') , allUserAgents = require('../src/useragents').useragents /**