Skip to content

fix of infinite loop browser/node detection#25

Open
fleedoJ wants to merge 1 commit into
themaximalist:mainfrom
fleedoJ:bugfix/infinite-env-detection
Open

fix of infinite loop browser/node detection#25
fleedoJ wants to merge 1 commit into
themaximalist:mainfrom
fleedoJ:bugfix/infinite-env-detection

Conversation

@fleedoJ

@fleedoJ fleedoJ commented Dec 7, 2025

Copy link
Copy Markdown
  • Simplify isBrowser and isNode to avoid mutual recursion when both window and process exist, e.g. Electron renderer
  • Precompute environment flags once and add isElectron helper for explicit Electron checks
  • Preserve API key and environment selection logic without recursive calls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant