Attempt to flush the rageshake logs on close
... so that we get to see what happened in the last 30s.
This commit is contained in:
parent
fab50bc1f1
commit
cc56ef3abd
4 changed files with 23 additions and 0 deletions
|
@ -45,6 +45,12 @@ rageshake.init().then(() => {
|
|||
console.error("Failed to initialise rageshake: " + err);
|
||||
});
|
||||
|
||||
window.addEventListener('beforeunload', (e) => {
|
||||
console.log('riot-web closing');
|
||||
// try to flush the logs to indexeddb
|
||||
rageshake.flush();
|
||||
});
|
||||
|
||||
|
||||
// add React and ReactPerf to the global namespace, to make them easier to
|
||||
// access via the console
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue