Be clear about the usage example
This commit is contained in:
parent
3815ed8af4
commit
06f4c1b337
1 changed files with 3 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue