From 86529ae50c2b8c024f51292393b1d30e580c6094 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 9 Jun 2019 20:32:52 +0300 Subject: [PATCH] Don't hardcode repo URL for update check user agent --- src/data/updates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/updates.js b/src/data/updates.js index 9665a0d..36d4239 100644 --- a/src/data/updates.js +++ b/src/data/updates.js @@ -44,7 +44,7 @@ async function refreshVersions() { apiUrl, { headers: { - 'User-Agent': `Modmailbot (https://github.com/dragory/modmailbot) (${packageJson.version})` + 'User-Agent': `Modmailbot (https://github.com/${owner}/${repo}) (${packageJson.version})` } }, async res => {