fix#110 add NodeList forEach polyfill
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
import { snapshot } from 'rrweb-snapshot';
|
||||
import initObservers from './observer';
|
||||
import { mirror, on, getWindowWidth, getWindowHeight } from '../utils';
|
||||
import {
|
||||
mirror,
|
||||
on,
|
||||
getWindowWidth,
|
||||
getWindowHeight,
|
||||
polyfill,
|
||||
} from '../utils';
|
||||
import {
|
||||
EventType,
|
||||
event,
|
||||
@@ -49,6 +55,8 @@ function record(options: recordOptions = {}): listenerHandler | undefined {
|
||||
throw new Error('emit function is required');
|
||||
}
|
||||
|
||||
polyfill();
|
||||
|
||||
let lastFullSnapshotEvent: eventWithTime;
|
||||
let incrementalSnapshotCount = 0;
|
||||
wrappedEmit = (e: eventWithTime, isCheckout?: boolean) => {
|
||||
|
||||
Reference in New Issue
Block a user