Merge branch 'master' into sourcemaps

This commit is contained in:
Justin Halsall
2021-07-19 15:56:49 +02:00
committed by GitHub
3 changed files with 24 additions and 23 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 } 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;