Skip to content

Opening local pdf files on Windows downloads them, shows blank window. #22

@gardiner

Description

@gardiner

We develop an electron app which displays a local single page application which on occasion contains links to (also local) pdf files.
We have included electron-pdf-window and use it with PDFWindow.addSupport(mainWindow);.
On a mac, when clicking a link to these pdf files (<a> element using target="_blank") a new window opens and the pdf file is displayed - perfect, just as intended.
On windows, when clicking the link, a new blank window opens and the pdf file is offered for download. How can we achieve the same behavior as on the mac?

Thank you guys for all your effort, it is much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions