Electron Intercept file:/// protocol to read inside zip files
<p>I would like to read inside zip archives with Electron as if they were folders, like so <code>/myfolder/myarchive.zip/picture.jpg</code>.  To do this I'm thinking about intercepting the file protocol</p>

<pre><code>protocol.interceptFileProtocol('file', (request, callback) =&gt; {
    if (insideZipArchive) {
        //respond with zip file contents
    } else {
        //defaultBehavior
    }

  }, (error) =&gt; {
    if (error) console.error('Failed to register protocol')
  })
</code></pre>

<p>How do I invoke the default behavior?  Also doing an AJAX request inside the interceptor and serving files like this <code>callback({data: new Buffer(xhr.responseText)})</code>does not seem to work.</p>