From 06f4c1b3372483a0978dcd17f43aa00684ea0a35 Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Sat, 12 Aug 2017 01:23:54 +0200 Subject: [PATCH] Be clear about the usage example --- docs/tutorial/updates.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/tutorial/updates.md b/docs/tutorial/updates.md index 11550c636963..60862ddc56d3 100644 --- a/docs/tutorial/updates.md +++ b/docs/tutorial/updates.md @@ -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')