diff --git a/lib/log.js b/lib/log.js index 4ef70059..3c86b134 100644 --- a/lib/log.js +++ b/lib/log.js @@ -298,7 +298,7 @@ if(typeof(console) !== 'undefined' && 'log' in console) { * that could otherwise be limited by a user config. */ if(sConsoleLogger !== null && - typeof window !== 'undefined' && window.location + typeof window !== 'undefined' && window.location && typeof URL !== 'undefined' ) { var query = new URL(window.location.href).searchParams; if(query.has('console.level')) {