From 29bb872ab299feecc311b9ecfe775c84521142b6 Mon Sep 17 00:00:00 2001 From: Dmitri Voronianski Date: Tue, 29 Nov 2016 15:22:28 +0100 Subject: [PATCH] fix global exports --- src/bowser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bowser.js b/src/bowser.js index 5afbc6a..e6b27e1 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -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 */