<ul dir="auto">
<li>Electron version: 1.2.0</li>
<li>Operating system: OSX 10.11.5</li>
</ul>
<p dir="auto">Hi,</p>
<p dir="auto">I just moved an app from 1.1.x to 1.2.x and discovered my preload script isn't executing for the <code class="notranslate">BrowserWindow</code></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'use strict';

window.$ = window.jQuery = require('jquery');
console.info(&quot;Preloaded jquery&quot;);"><pre class="notranslate"><span class="pl-s">'use strict'</span><span class="pl-kos">;</span>

<span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">$</span> <span class="pl-c1">=</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">jQuery</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'jquery'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">info</span><span class="pl-kos">(</span><span class="pl-s">"Preloaded jquery"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">If I move back to 1.1.x, the script runs as expected.</p>
<ul dir="auto">
<li>Electron version: 1.2.0</li>
<li>Operating system: OS X 10.11.5</li>
</ul>
<p dir="auto">webview preload attribute seems to be broken in Electron 1.2.0/Chrome 51 (worked with 1.1.3/Chrome 50).</p>
<p dir="auto">Here is how I used it (successfully) on versions prior to 1.2.0:<br>
<code class="notranslate">@webview.preload = "file://#{app.getAppPath()}/js/player-preload.js"</code></p>
<p dir="auto">Tried to put it in the HTML webview tag directly as attribute, same thing.</p>
<p dir="auto">Note: No error in the Console though, it's just that the script is never actually executed.</p>