From 2eb67810162bda54601593a7450f64b3cf99440f Mon Sep 17 00:00:00 2001 From: Erick Zhao Date: Thu, 30 Apr 2020 18:54:53 -0700 Subject: [PATCH] docs: fix autoupdater tutorial API (#23298) --- docs/tutorial/updates.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/updates.md b/docs/tutorial/updates.md index 6c8e6741be9..683bb1ce071 100644 --- a/docs/tutorial/updates.md +++ b/docs/tutorial/updates.md @@ -80,9 +80,9 @@ Next, construct the URL of the update server and tell ```javascript const server = 'https://your-deployment-url.com' -const feed = `${server}/update/${process.platform}/${app.getVersion()}` +const url = `${server}/update/${process.platform}/${app.getVersion()}` -autoUpdater.setFeedURL(feed) +autoUpdater.setFeedURL({ url }) ``` As the final step, check for updates. The example below will check every minute: