update player with built-in unpack function

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent a4dc863065
commit 3537720833
2 changed files with 3 additions and 2 deletions

View File

@@ -16,7 +16,7 @@
"svelte": "^2.16.0"
},
"dependencies": {
"rrweb": "^0.7.31"
"rrweb": "^0.7.32"
},
"scripts": {
"build": "rollup -c",

View File

@@ -14,7 +14,7 @@
</div>
<script>
import { Replayer } from 'rrweb';
import { Replayer, unpack } from 'rrweb';
import 'rrweb/dist/rrweb.min.css';
import {
inlineCss,
@@ -86,6 +86,7 @@
skipInactive: true,
showWarning: true,
triggerFocus,
unpackFn: unpack,
});
replayer.on('resize', (dimension) =>
this.updateScale(replayer.wrapper, dimension),