You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FEAT [electron#20442] : adds the fiddle for launching an app from URL in another app, including all 3 files main.js, index.html, renderer.js (electron#20718)
<h3>The <code>app</code> module provides methods for handling protocols.</h3>
14
+
<p>These methods allow you to set and unset the protocols your app should be the default app for. Similar to when a browser asks to be your default for viewing web pages.</p>
15
+
16
+
<p>Open the <ahref="http://electron.atom.io/docs/api/app">full app API documentation<spanclass="u-visible-to-screen-reader">(opens in new window)</span></a> in your browser.</p>
17
+
</header>
18
+
19
+
<div>
20
+
<buttonid="open-in-browser" class="js-container-target demo-toggle-button">Launch current page in browser
<ahref="electron-api-demos://open">Now... launch the app from a web link</a>
25
+
</section>
26
+
<div>
27
+
<p>You can set your app as the default app to open for a specific protocol. For instance, in this demo we set this app as the default for <code>electron-api-demos://</code>. The demo button above will launch a page in your default browser with a link. Click that link and it will re-launch this app.</p>
28
+
<h5>Packaging</h5>
29
+
<p>This feature will only work on macOS when your app is packaged. It will not work when you're launching it in development from the command-line. When you package your app you'll need to make sure the macOS <code>plist</code> for the app is updated to include the new protocol handler. If you're using <code>electron-packager</code> then you can add the flag <code>--extend-info</code> with a path to the <code>plist</code> you've created. The one for this app is below.</p>
0 commit comments