Commit 12478d38 authored by aiduck's avatar aiduck

listenOnHash在init中调用

parent 0a5517c6
{ {
"name": "@tuia/rip", "name": "@tuia/rip",
"version": "1.0.0", "version": "1.0.1",
"description": "Tools for user behavior recording and playback based on rrweb", "description": "Tools for user behavior recording and playback based on rrweb",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -28,6 +28,7 @@ class Monitor { ...@@ -28,6 +28,7 @@ class Monitor {
} else { } else {
this.reset({ userIdentifier }); this.reset({ userIdentifier });
} }
this.listenOnHash();
this.tracksWorker.onmessage = (event) => { this.tracksWorker.onmessage = (event) => {
switch(event.data) { switch(event.data) {
case "resetRecord": case "resetRecord":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment