mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:16:38 -06:00
FIX: It seems sometimes shims are evaluated by older JS engines (#11813)
This gives us backwards compatibility with those.
This commit is contained in:
parent
4f01ca87e3
commit
dc268822a4
@ -7,7 +7,7 @@ if (typeof define !== "undefined") {
|
|||||||
__exports__.default = Handlebars;
|
__exports__.default = Handlebars;
|
||||||
__exports__.compile = function () {
|
__exports__.compile = function () {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
return Handlebars.compile(...arguments);
|
return Handlebars.compile.apply(this, arguments);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user