Be clear about the usage example

This commit is contained in:
Leo Lamprecht 2017-08-12 01:23:54 +02:00 committed by GitHub
parent 3815ed8af4
commit 06f4c1b337

View file

@ -14,7 +14,9 @@ Depending on your needs, you can choose from one of these:
## Implementing Updates into Your App
Once you've deployed your update server, continue with importing the required modules in your code (please ensure that the code below will only be executed in production - you can use [electron-is-dev](https://github.com/sindresorhus/electron-is-dev) for that):
Once you've deployed your update server, continue with importing the required modules in your code. The following code might vary for a different update server, but it works like described when using [Hazel](https://github.com/zeit/hazel).
**Important:** Please ensure that the code below will only be executed in production - you can use [electron-is-dev](https://github.com/sindresorhus/electron-is-dev) to check for the environment).
```js
const { app, autoUpdater } = require('electron')