chore: sync upstream PR #8429 - fix: Fix missing `window.Capacitor` on Android after redirection

Merged
RI
3mo ago
+8-1

Upstream PR Sync

This PR syncs changes from an external contributor's PR on the official Capacitor repository.

Original PR

  • PR: #8429
  • Title: fix: Fix missing window.Capacitor on Android after redirection
  • Author: @caffeinated10xprogrammer

Automation

  • CI will run automatically
  • Claude Code will review for security/breaking changes
  • If approved, this PR will be auto-merged
  • A new release will be published automatically

Synced from upstream by Capacitor+ Bot

Summary by CodeRabbit

  • Bug Fixes
    • Improved JavaScript initialization across configured allowed origins.
    • Ensured document-start scripts load consistently for apps using multiple origins.