Modal window disappearing on Electron
<p>I'm testing out the electron way of building apps, and I'm currently stuck on a problem: </p>

<p>I want to show a modal dialog, but once it's finished rendering it disappears. It works fine in a regular browser, but not in the electron (chromium) window. </p>

<p>The modal is the bootstrap one found on W3schools:</p>

<pre><code>&lt;!-- Modal --&gt;
      &lt;div class="modal fade" id="myModal" role="dialog"&gt;
        &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
            &lt;div class="modal-header"&gt;
              &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;/button&gt;
              &lt;h4 class="modal-title"&gt;Modal title&lt;/h4&gt;
            &lt;/div&gt;
            &lt;div class="modal-body"&gt;
              &lt;p&gt;One fine body&amp;hellip;&lt;/p&gt;
            &lt;/div&gt;
            &lt;div class="modal-footer"&gt;
              &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
              &lt;button type="button" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
            &lt;/div&gt;
          &lt;/div&gt;&lt;!-- /.modal-content --&gt;
        &lt;/div&gt;&lt;!-- /.modal-dialog --&gt;
      &lt;/div&gt;&lt;!-- /.modal --&gt;
</code></pre>

<p>And the method calling it is:</p>

<pre><code>$("#myButton").on("click", function(){
  $("#myModal").modal('show');
});
</code></pre>

<p>The above method is called from a render process atm, but the same behaviour is seen when calling it from main! What am I overlooking?</p>