in src/lib/api/event.replayer.ts [54:68]
replayAll() {
if (this.replayStarted) {
return;
} else {
this.replayStarted = true;
}
// loop through each of the preboot apps
const prebootData = this.getWindow().prebootData || {};
const apps = prebootData.apps || [];
apps.forEach(appData => this.replayForApp(appData));
// once all events have been replayed and buffers switched, then we cleanup preboot
this.cleanup(prebootData);
}