mirror of
https://github.com/langgenius/dify.git
synced 2026-03-01 13:58:40 +08:00
Replace the pre-evaluated isServer check with a direct typeof window === 'undefined' check to properly handle test scenarios where window is stubbed after module load. Co-authored-by: lyzno1 <92089059+lyzno1@users.noreply.github.com>