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