mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
Be clear about the usage example
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user