@wraps.dev/cli 2.11.6 → 2.11.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js
CHANGED
|
@@ -20221,7 +20221,7 @@ function renderViewerPage(compiled, allSlugs) {
|
|
|
20221
20221
|
try {
|
|
20222
20222
|
const doc = iframe.contentDocument || iframe.contentWindow.document;
|
|
20223
20223
|
iframe.style.height = doc.documentElement.scrollHeight + 'px';
|
|
20224
|
-
} catch {}
|
|
20224
|
+
} catch {} // guardrail:allow-swallowed-error \u2014 cross-origin iframe resize
|
|
20225
20225
|
}
|
|
20226
20226
|
iframe.addEventListener('load', resizeIframe);
|
|
20227
20227
|
|
|
@@ -20232,7 +20232,7 @@ function renderViewerPage(compiled, allSlugs) {
|
|
|
20232
20232
|
const data = JSON.parse(e.data);
|
|
20233
20233
|
// Reload iframe (and toolbar metadata by reloading the page)
|
|
20234
20234
|
iframe.src = '/${compiled.slug}/render?t=' + Date.now();
|
|
20235
|
-
} catch {
|
|
20235
|
+
} catch { // guardrail:allow-swallowed-error \u2014 SSE parse error is expected
|
|
20236
20236
|
// "connected" message or parse error \u2014 ignore
|
|
20237
20237
|
}
|
|
20238
20238
|
};
|