mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
More debug options
This commit is contained in:
+11
-1
@@ -386,7 +386,7 @@ speechSynthesis.getVoices();
|
|||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
try {
|
try {
|
||||||
response.data = JSON.parse(response.data);
|
response.data = JSON.parse(response.data);
|
||||||
if ($app.debug) {
|
if ($app.debugWebRequests) {
|
||||||
console.log(init, response.data);
|
console.log(init, response.data);
|
||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
@@ -3390,6 +3390,14 @@ speechSynthesis.getVoices();
|
|||||||
try {
|
try {
|
||||||
var json = JSON.parse(data);
|
var json = JSON.parse(data);
|
||||||
json.content = JSON.parse(json.content);
|
json.content = JSON.parse(json.content);
|
||||||
|
if ($app.debugWebSocket) {
|
||||||
|
var displayName = '';
|
||||||
|
if (this.cachedUsers.has(json.content.userId)) {
|
||||||
|
var user = this.cachedUsers.get(json.content.userId);
|
||||||
|
displayName = user.displayName;
|
||||||
|
}
|
||||||
|
console.log('WebSocket', json.type, displayName, json.content);
|
||||||
|
}
|
||||||
this.$emit('PIPELINE', {
|
this.$emit('PIPELINE', {
|
||||||
json
|
json
|
||||||
});
|
});
|
||||||
@@ -3713,6 +3721,8 @@ speechSynthesis.getVoices();
|
|||||||
};
|
};
|
||||||
|
|
||||||
$app.data.debug = false;
|
$app.data.debug = false;
|
||||||
|
$app.data.debugWebRequests = false;
|
||||||
|
$app.data.debugWebSocket = false;
|
||||||
|
|
||||||
$app.data.APILastOnline = new Map();
|
$app.data.APILastOnline = new Map();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user