mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
Merge pull request #369 from symunona/rjs-fix
FIX: When using as AMD module with RequireJS optimizer using a namespace
This commit is contained in:
commit
b6d2bb5262
@ -1088,7 +1088,7 @@
|
||||
exports.UAParser = UAParser;
|
||||
} else {
|
||||
// requirejs env (optional)
|
||||
if (typeof(define) === FUNC_TYPE && define.amd) {
|
||||
if (typeof(define) === 'function' && define.amd) {
|
||||
define(function () {
|
||||
return UAParser;
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user