Skip to content

Conversation

@hinxcode
Copy link
Collaborator

@hinxcode hinxcode commented Dec 2, 2025

Open this PR to address "Loading home page downloads PDF instantly #52".

I replaced the iframe tag with an img tag so that the PDF is no longer embedded directly. In some browsers (such as Firefox), a PDF embedded in an iframe triggers an automatic download when the user’s default action is set to "Save File".

Using a simple image preview avoids this issue.

@hinxcode hinxcode merged commit fa09e57 into main Dec 2, 2025
1 check passed
hinxcode added a commit that referenced this pull request Dec 2, 2025
fix: Replace iframe with img tag to prevent pdf being downloaded auto…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants