Release · v2.18.7
Render masked PDFs inline on mobile via PDF.js
Render masked PDFs inline on mobile via PDF.js
Details
Mobile browsers can't render a PDF blob inside an <iframe> — they show a dead placeholder with the blob id and an 'Open' button instead of the document. The CV link (and any masked document) hit this on mobile. Rasterize PDF pages to canvases with pdf.js so the document appears inline within the same tab, keeping the persistent Back/Open toolbar. Images now render via <img> and other types still use an <iframe>. If pdf.js can't load (e.g. blocked CDN), fall back to an <iframe> so the document stays reachable. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U6jxFeAAFW5q6cPZmWjKVw
Files changed (1)
| frontend/client/ts/core/db_assets.ts | +149 | −18 |