Files
handlebars.js/lib/handlebars/no-conflict.js
T
Jakob Linskeseder 6186128ad0 Make library compatible with workers
Pulled from 4.x branch, see #1894.
2022-10-29 21:49:15 +02:00

12 lines
279 B
JavaScript

export default function (Handlebars) {
let $Handlebars = globalThis.Handlebars;
/* istanbul ignore next */
Handlebars.noConflict = function () {
if (globalThis.Handlebars === Handlebars) {
globalThis.Handlebars = $Handlebars;
}
return Handlebars;
};
}