Node 22 has global `navigator` object, so this check should be updated accordingly ``` var inBrowser = typeof navigator !== 'undefined'; ``` Related links https://github.com/nodejs/node/issues/39540 https://nodejs.org/docs/latest/api/globals.html#navigatoruseragent ``` console.log(`The user-agent is ${navigator.userAgent}`); // Prints "Node.js/21" ```