I have an Electron application that downloads a URL from a PHP server. And the page contains an iFrame with a source for PDF. The PDF page looks completely normal in a normal web browser, but asks to download to Electron. Any help?
My html page codes
<h1>Hello World!</h1> Some html content here... <iframe src="http://mozilla.imtqy.com/pdf.js/web/compressed.tracemonkey-pldi-09.pdf" width="1200" height="800"></iframe>
And my js code is like
mainWindow = new BrowserWindow({width: 800, height: 600}) mainWindow.loadURL(url.format({ pathname: path.join(__dirname, 'index.html'), protocol: 'file:', slashes: true })) app.on('ready', createWindow)
Any help would be really wonderful ...
source share