Open pdf with electron-pdf-window
<p>I have a web application developed with HTML and jQuery and, through Electron, becomes a desktop application (.exe file).
Using jQuery, I would like to open the pdf file. </p>

<p>First, I get the url of the pdf with:</p>

<pre><code>var url = $(this).attr('href').replace(/%20/g, " ");
</code></pre>

<p>At this point I should open the file in a new window of electron, probably using <a href="https://www.npmjs.com/package/electron-pdf-window" rel="nofollow noreferrer">electron-pdf-window</a>.
How do I run this command in jQuery?</p>

<p>With something like:</p>

<pre><code>var {PDFWindow} = require('electron-pdf-window')
var win = new PDFWindow({
    width: 800,
    height: 600
})
</code></pre>

<p>Thanks in advance</p>