From 68d08113a5ae25ffb4cfcb32dfa1f3a9d6f64364 Mon Sep 17 00:00:00 2001 From: Dustin Diaz Date: Sat, 25 Jul 2015 19:14:31 -0700 Subject: [PATCH] officially change export to be the `bowser` object directly --- src/bowser.js | 2 +- test/test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 /**