mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-03 06:36:23 +08:00
**Previously**, clicking a web push notification could focus a full app
embed iframe on an external page and navigate it to the target URL (via
`postMessage({ url })` → router transition), instead of opening or
focusing a standalone Discourse window.
**In this update**, the service worker's `notificationclick` handler
filters out clients with `frameType === "nested"` before considering
them for reuse, so embed iframes are ignored and a real top-level
Discourse window is focused — or a new one is opened via
`clients.openWindow` when none exists.
|
||
|---|---|---|
| .. | ||
| login.html.erb | ||
| service-worker.js.erb | ||
| show.html.erb | ||