Skip to content

Conversation

@jerome-benoit
Copy link
Contributor

@jerome-benoit jerome-benoit commented Jan 15, 2026

What does this PR do?

Fixes typecheck error TS2304: Cannot find name 'platform' introduced in #7360.

Moves platform and serverPassword creation outside render() so they're available to the click event listener that references platform.openLink().

Fixes #8657

How did you verify your code works?

  • ✅ Typecheck passes: bun run typecheck
  • ✅ Pre-push hooks pass (includes turbo typecheck)
  • ✅ No functionality changes - only moves existing code to correct scope

Fixes typecheck error introduced in anomalyco#7360 where platform.openLink() was
referenced before platform was defined. Move platform and serverPassword
creation outside render() so they're available to the click event listener.
Copilot AI review requested due to automatic review settings January 15, 2026 11:06
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a TypeScript compilation error introduced in PR #7360 where platform.openLink() was referenced in an event listener before platform was defined. The solution moves the creation of platform and serverPassword signal outside the render() function to module scope.

Changes:

  • Move createSignal call for serverPassword from inside render() to module scope
  • Move createPlatform() call from inside render() to module scope

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Eric-Guo
Copy link
Contributor

LGTM!

@jerome-benoit
Copy link
Contributor Author

fixed in dev

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.

Desktop typecheck error: Cannot find name 'platform'

2 participants