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 46c81ff commit f5b9b14Copy full SHA for f5b9b14
src/index.ts
@@ -15,8 +15,8 @@ declare global {
15
}
16
17
// do not warn in mocha hot-reloading environment
18
-if ((typeof global.it !== 'function' || typeof global.describe !== 'function') && global._politie_informant_loaded_) {
+if ((typeof globalThis.it !== 'function' || typeof globalThis.describe !== 'function') && globalThis._politie_informant_loaded_) {
19
// tslint:disable-next-line:no-console
20
console.error('@politie/informant already loaded, check for duplicate installs of library!');
21
22
-global._politie_informant_loaded_ = true;
+globalThis._politie_informant_loaded_ = true;
0 commit comments