mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 07:58:45 +03:00
FIX: When using in an AMD module with RequireJS using a namespace,
it does not get packed correctly, because r.js optimizer matches the exact line containing 'function' as a string. (See r.js@26506)
This commit is contained in:
parent
732cf5834e
commit
97dc89ae03
@ -1083,7 +1083,7 @@
|
|||||||
exports.UAParser = UAParser;
|
exports.UAParser = UAParser;
|
||||||
} else {
|
} else {
|
||||||
// requirejs env (optional)
|
// requirejs env (optional)
|
||||||
if (typeof(define) === FUNC_TYPE && define.amd) {
|
if (typeof(define) === 'function' && define.amd) {
|
||||||
define(function () {
|
define(function () {
|
||||||
return UAParser;
|
return UAParser;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user