Improve onUnload docs (#2409)

Add missing reference to `onUnload` invocation during [plugin
updates](https://github.com/zeit/hyper/blob/2.0.4/app/plugins.js#L111).
This commit is contained in:
David Calhoun 2017-10-29 19:06:17 -05:00 committed by CHaBou
parent 28cab5e874
commit c73d7317af

View file

@ -287,7 +287,7 @@
#content h3:before { #content h3:before {
content: '### '; content: '### ';
} }
#content h4:before { #content h4:before {
content: '#### '; content: '#### ';
} }
@ -925,7 +925,8 @@
<td><code>onUnload</code></td> <td><code>onUnload</code></td>
<td>Electron</td> <td>Electron</td>
<td> <td>
<p>Invoked when a plugin is removed by the user.</p> <p>Invoked when a plugin is removed by the user and during
plugin updates.</p>
<p>Parameters:</p> <p>Parameters:</p>
<table> <table>
<tbody> <tbody>
@ -1242,7 +1243,7 @@
<p>The user can hot-load and hot-reload plugins by pressing <p>The user can hot-load and hot-reload plugins by pressing
Command + R (refresh). Please strive to make plugins that don't Command + R (refresh). Please strive to make plugins that don't
require a complete restart of the application to work.</p> require a complete restart of the application to work.</p>
<h4>Notice</h4> <h4>Notice</h4>
<p>Plugins affecting the `BrowserWindow` will the effect on new windows after hot-reload.</p> <p>Plugins affecting the `BrowserWindow` will the effect on new windows after hot-reload.</p>