mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 00:18: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;
|
||||
} 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