Don't hardcode repo URL for update check user agent

master
Dragory 2019-06-09 20:32:52 +03:00
parent 5a352a5073
commit 86529ae50c
1 changed files with 1 additions and 1 deletions

View File

@ -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 => {