opencode
opencode copied to clipboard
fix(desktop): move platform creation before event listener
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