diff --git a/internal/plugin-gallery/dev-plugin.mjs b/internal/plugin-gallery/dev-plugin.mjs index bef156195..bdc6fbf5a 100644 --- a/internal/plugin-gallery/dev-plugin.mjs +++ b/internal/plugin-gallery/dev-plugin.mjs @@ -211,8 +211,8 @@ export function leafRewrite(path, treeName = TREE_NAME) { // urlOwner 'app' (library/composables/useViewAddress.js) for a dev page that is OURS, the rule generate-tree bakes // into the built leaf: its shell writes ?tab=, so a clicked tab survives a reload and a copied link opens it. A -// FRAMED page drops it: Plugin Studio iframes its map rows from /__leaf/, and a history push from an iframe lands -// in the top page's Back stack. Write the element unowned and put this classic script right after it; it runs +// FRAMED page drops it: a partner page may iframe a leaf (the iframe embed), and a history push from an iframe +// lands in the top page's Back stack. (Plugin Studio mounts its rows directly; its panes are unowned by paneConfig.) Write the element unowned and put this classic script right after it; it runs // before the deferred module script upgrades the element. `<` is escaped: profile/instance come from the URL. export function ownIfTopScript(cfg = {}) { const owned = JSON.stringify(JSON.stringify({ ...cfg, urlOwner: 'app' })).replace(/