mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 07:58:45 +03:00
Fix: don't define the RequireJs module with name
If we define it with name it becomes less portable and breaks code that used version `0.7.10`. This is not correct according to **semver**, as this is a `patch` only which should not break APIs. I think defining the module with a name should be a responsibility of build tools / optimisation tools.
This commit is contained in:
parent
10775bd17c
commit
f28f87c412
@ -862,7 +862,7 @@
|
||||
} else {
|
||||
// requirejs env (optional)
|
||||
if (typeof(define) === FUNC_TYPE && define.amd) {
|
||||
define("ua-parser-js", [], function () {
|
||||
define(function () {
|
||||
return UAParser;
|
||||
});
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user