close #244 pass fullsnapshot event to the callback

This commit is contained in:
Yanzhen Yu
2020-07-18 15:16:59 +08:00
parent d7a1b0c9e3
commit 0756319b8e

View File

@@ -381,7 +381,7 @@ export class Replayer {
for (let idx = 0; idx < injectStylesRules.length; idx++) {
(styleEl.sheet! as CSSStyleSheet).insertRule(injectStylesRules[idx], idx);
}
this.emitter.emit(ReplayerEvents.FullsnapshotRebuilded);
this.emitter.emit(ReplayerEvents.FullsnapshotRebuilded, event);
this.waitForStylesheetLoad();
}