mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-20 23:33:50 +02:00
debug
This commit is contained in:
@@ -295,7 +295,9 @@ speechSynthesis.getVoices();
|
|||||||
API.eventHandlers = new Map();
|
API.eventHandlers = new Map();
|
||||||
|
|
||||||
API.$emit = function (name, ...args) {
|
API.$emit = function (name, ...args) {
|
||||||
// console.log(name, ...args);
|
if ($app.debug) {
|
||||||
|
console.log(name, ...args);
|
||||||
|
}
|
||||||
var handlers = this.eventHandlers.get(name);
|
var handlers = this.eventHandlers.get(name);
|
||||||
if (typeof handlers === 'undefined') {
|
if (typeof handlers === 'undefined') {
|
||||||
return;
|
return;
|
||||||
@@ -375,6 +377,9 @@ speechSynthesis.getVoices();
|
|||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
try {
|
try {
|
||||||
response.data = JSON.parse(response.data);
|
response.data = JSON.parse(response.data);
|
||||||
|
if ($app.debug) {
|
||||||
|
console.log(init, response);
|
||||||
|
}
|
||||||
return response;
|
return response;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
}
|
}
|
||||||
@@ -3601,6 +3606,8 @@ speechSynthesis.getVoices();
|
|||||||
setTimeout(() => this.updateLoop(), 500);
|
setTimeout(() => this.updateLoop(), 500);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$app.debug = false;
|
||||||
|
|
||||||
$app.data.sharedFeed = {
|
$app.data.sharedFeed = {
|
||||||
gameLog: {
|
gameLog: {
|
||||||
wrist: [],
|
wrist: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user