rrweb 1.0 use new getMirror api (#70)

* Fixes #69

* update rrweb to 1.0.0-beta.0
This commit is contained in:
Justin Halsall
2021-06-22 04:26:39 +02:00
committed by GitHub
parent 1c59ead007
commit 52cbbdaf56
3 changed files with 14 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { onMount, onDestroy } from 'svelte';
import { Replayer, unpack, mirror } from 'rrweb';
import { Replayer, unpack } from 'rrweb';
import type { eventWithTime, playerConfig } from 'rrweb/typings/types';
import {
inlineCss,
@@ -22,12 +22,13 @@
export let showController: boolean = true;
export let tags: Record<string, string> = {};
export const getMirror = () => mirror;
let replayer: Replayer;
export const getMirror = () => replayer.getMirror();
const controllerHeight = 80;
let player: HTMLElement;
let frame: HTMLElement;
let replayer: Replayer;
let fullscreenListener: undefined | (() => void);
let _width: number = width;
let _height: number = height;