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" "svelte": "^2.16.0"
}, },
"dependencies": { "dependencies": {
"rrweb": "^0.7.31" "rrweb": "^0.7.32"
}, },
"scripts": { "scripts": {
"build": "rollup -c", "build": "rollup -c",

View File

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