We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03fe783 commit 6186128Copy full SHA for 6186128
lib/handlebars/no-conflict.js
@@ -1,11 +1,10 @@
1
export default function (Handlebars) {
2
- /* istanbul ignore next */
3
- let root = typeof global !== 'undefined' ? global : window, // eslint-disable-line no-undef
4
- $Handlebars = root.Handlebars;
+ let $Handlebars = globalThis.Handlebars;
+
5
/* istanbul ignore next */
6
Handlebars.noConflict = function () {
7
- if (root.Handlebars === Handlebars) {
8
- root.Handlebars = $Handlebars;
+ if (globalThis.Handlebars === Handlebars) {
+ globalThis.Handlebars = $Handlebars;
9
}
10
return Handlebars;
11
};
0 commit comments