mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
fix 403 spam
This commit is contained in:
+3
-2
@@ -16,6 +16,7 @@ import '../node_modules/vue-swatches/dist/vue-swatches.css';
|
|||||||
import ElementUI from 'element-ui';
|
import ElementUI from 'element-ui';
|
||||||
import locale from 'element-ui/lib/locale/lang/en';
|
import locale from 'element-ui/lib/locale/lang/en';
|
||||||
|
|
||||||
|
import {appVersion} from './constants.js';
|
||||||
import sharedRepository from './repository/shared.js';
|
import sharedRepository from './repository/shared.js';
|
||||||
import configRepository from './repository/config.js';
|
import configRepository from './repository/config.js';
|
||||||
import webApiService from './service/webapi.js';
|
import webApiService from './service/webapi.js';
|
||||||
@@ -373,7 +374,7 @@ speechSynthesis.getVoices();
|
|||||||
: '{}';
|
: '{}';
|
||||||
}
|
}
|
||||||
init.headers = {
|
init.headers = {
|
||||||
'User-Agent': $app.appVersion,
|
'User-Agent': appVersion,
|
||||||
...init.headers
|
...init.headers
|
||||||
};
|
};
|
||||||
var req = webApiService.execute(init).catch((err) => {
|
var req = webApiService.execute(init).catch((err) => {
|
||||||
@@ -3559,7 +3560,7 @@ speechSynthesis.getVoices();
|
|||||||
nextFriendsRefresh: 0,
|
nextFriendsRefresh: 0,
|
||||||
isGameRunning: false,
|
isGameRunning: false,
|
||||||
isGameNoVR: false,
|
isGameNoVR: false,
|
||||||
appVersion: 'VRCX 2021.04.04',
|
appVersion,
|
||||||
latestAppVersion: '',
|
latestAppVersion: '',
|
||||||
ossDialog: false,
|
ossDialog: false,
|
||||||
exportFriendsListDialog: false,
|
exportFriendsListDialog: false,
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
export var appVersion = 'VRCX 2021.04.04.1';
|
||||||
@@ -9,6 +9,7 @@ import Vue from 'vue';
|
|||||||
import ElementUI from 'element-ui';
|
import ElementUI from 'element-ui';
|
||||||
import locale from 'element-ui/lib/locale/lang/en';
|
import locale from 'element-ui/lib/locale/lang/en';
|
||||||
|
|
||||||
|
import {appVersion} from './constants.js';
|
||||||
import sharedRepository from './repository/shared.js';
|
import sharedRepository from './repository/shared.js';
|
||||||
import configRepository from './repository/config.js';
|
import configRepository from './repository/config.js';
|
||||||
import webApiService from './service/webapi.js';
|
import webApiService from './service/webapi.js';
|
||||||
@@ -188,6 +189,10 @@ speechSynthesis.getVoices();
|
|||||||
? JSON.stringify(params)
|
? JSON.stringify(params)
|
||||||
: '{}';
|
: '{}';
|
||||||
}
|
}
|
||||||
|
init.headers = {
|
||||||
|
'User-Agent': appVersion,
|
||||||
|
...init.headers
|
||||||
|
};
|
||||||
var req = webApiService.execute(init).catch((err) => {
|
var req = webApiService.execute(init).catch((err) => {
|
||||||
this.$throw(0, err);
|
this.$throw(0, err);
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user