Add event tracing debug function

This commit is contained in:
Cohee
2024-03-16 18:17:04 +02:00
parent 7aa5ab2d8d
commit 2173b8b22a
2 changed files with 15 additions and 2 deletions

View File

@ -8130,6 +8130,11 @@ function addDebugFunctions() {
await reloadCurrentChat();
}
});
registerDebugFunction('toggleEventTracing', 'Toggle event tracing', 'Useful to see what triggered a certain event.', () => {
localStorage.setItem('eventTracing', localStorage.getItem('eventTracing') === 'true' ? 'false' : 'true');
toastr.info('Event tracing is now ' + (localStorage.getItem('eventTracing') === 'true' ? 'enabled' : 'disabled'));
});
}
jQuery(async function () {