fix logger.js

This commit is contained in:
Karsten Hassel
2021-09-28 22:08:21 +02:00
parent 8224a6ac35
commit c67320f185
2 changed files with 2 additions and 1 deletions

View File

@@ -30,7 +30,7 @@
enableLog = process.env.JEST_WORKER_ID === undefined;
} else {
// in browser and not running with jsdom
enableLog = typeof window === "object" && window.name === "nodejs";
enableLog = typeof window === "object" && window.name !== "jsdom";
}
if (enableLog) {