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