add keepIframeSrcFn option (#592)

* rename allowIframe to keepIframeSrcFn

* update rrweb-snapshot to 1.1.5
This commit is contained in:
bachmanity1
2021-06-30 12:51:27 +09:00
committed by GitHub
parent b96e9e3632
commit dee0457ffe
4 changed files with 8 additions and 1 deletions

View File

@@ -220,6 +220,7 @@ export type recordOptions<T> = {
plugins?: RecordPlugin[];
// departed, please use sampling options
mousemoveWait?: number;
keepIframeSrcFn?: KeepIframeSrcFn;
};
export type observerParam = {
@@ -552,3 +553,5 @@ export type ElementState = {
// [scrollLeft,scrollTop]
scroll?: [number, number];
};
export type KeepIframeSrcFn = (src: string) => boolean;