From: xavier Guimard <yadd@debian.org>
Date: mars, 09 2026 07:39:06 +0100
Subject: [PATCH] Fix node.js detection with nodejs 22
Forwarded: not-needed

--- a/src/common/Platform.ts
+++ b/src/common/Platform.ts
@@ -3,7 +3,7 @@
  * @license MIT
  */
 
-export const isNode = (typeof navigator === 'undefined') ? true : false;
+export const isNode = (typeof window === 'undefined') ? true : false;
 const userAgent = (isNode) ? 'node' : navigator.userAgent;
 const platform = (isNode) ? 'node' : navigator.platform;
 
