diff --git a/html/src/app.js b/html/src/app.js index 11ef7786..0a397d6f 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -344,9 +344,6 @@ speechSynthesis.getVoices(); var init = { url: `https://api.vrchat.cloud/api/1/${endpoint}`, method: 'GET', - headers: { - 'User-Agent': `VRCX ${$app.appVersion}` - }, ...options }; var { params } = init; @@ -375,6 +372,10 @@ speechSynthesis.getVoices(); ? JSON.stringify(params) : '{}'; } + init.headers = { + 'User-Agent': $app.appVersion, + ...init.headers + }; var req = webApiService.execute(init).catch((err) => { this.$throw(0, err); }).then((response) => {