Skip to content

Fix masterbar showing and install broken in Desktop Mode windows#33

Merged
akirk merged 2 commits into
mainfrom
chromeless-windows
May 5, 2026
Merged

Fix masterbar showing and install broken in Desktop Mode windows#33
akirk merged 2 commits into
mainfrom
chromeless-windows

Conversation

@akirk

@akirk akirk commented May 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds ?desktop_mode_chromeless=1 to both iframe URLs so the WordPress masterbar is suppressed inside native windows
  • Replaces window.parent.postMessage for install messages with getPlaygroundTarget().postMessage, which walks up the parent chain until it hits a cross-origin frame (Playground) — so installs work whether my-apps is loaded directly inside Playground or nested inside a Desktop Mode iframe

Test plan

  • Open My Apps native window — no masterbar visible
  • Open Add native window — no masterbar visible
  • Install an app from the Add window inside Desktop Mode — blueprint reaches Playground correctly
  • Install an app from the regular launcher (non-Desktop-Mode) — still works

akirk added 2 commits May 5, 2026 16:07
- Pass desktop_mode_chromeless=1 to both iframe URLs so the WordPress
  masterbar is suppressed inside native windows
- Use window.top instead of window.parent for install postMessage calls
  so blueprints reach Playground even when my-apps is nested inside a
  Desktop Mode iframe
@akirk akirk merged commit eba8eba into main May 5, 2026
@akirk akirk deleted the chromeless-windows branch May 5, 2026 14:17
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