}
{canEmbed && embedUrl && !isCbz &&
{/*
@@ -364,11 +384,8 @@ function DocPage() {
* re-gates rather than inheriting the last one's reveal.
*/}
-
+
}
diff --git a/app/src/components/Docs.test.js b/app/src/components/Docs.test.js
index 147ea885..6f757b1f 100644
--- a/app/src/components/Docs.test.js
+++ b/app/src/components/Docs.test.js
@@ -19,10 +19,15 @@ const source = fs.readFileSync(path.join(__dirname, 'Docs.js'), 'utf8');
describe('DocPage embed gating (source contract)', () => {
it('wraps the embedded viewer in a MediaGate', () => {
- // The iframe must not be reachable without passing through the gate.
- const embed = source.match(/]*>\s*