10
0
Fork 0
mirror of https://github.com/actions/setup-node.git synced 2026-04-09 09:14:17 +00:00
setup-node/node_modules/handlebars/lib/handlebars/no-conflict.js
eric sciple 2b95e76931 .
2020-01-24 12:20:19 -05:00

13 lines
369 B
JavaScript

/* global window */
export default function(Handlebars) {
/* istanbul ignore next */
let root = typeof global !== 'undefined' ? global : window,
$Handlebars = root.Handlebars;
/* istanbul ignore next */
Handlebars.noConflict = function() {
if (root.Handlebars === Handlebars) {
root.Handlebars = $Handlebars;
}
return Handlebars;
};
}