Reference window as global if available

This change will use `window` by default if it exists so that `browserify` and `Webpack` builds do not need to do something like

```javascript
var parser = new UAParser(window.navigator.userAgent)
```

https://github.com/faisalman/ua-parser-js/issues/84
This commit is contained in:
Robert Tod 2015-06-10 17:35:16 +01:00
parent a3e4fbe5bb
commit f117f600ba

View File

@ -865,4 +865,4 @@
}; };
} }
})(this); })(typeof window === 'object' ? window : this);