-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
74 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -201,7 +201,7 @@ export type SamplingStrategy = Partial<{ | |
|
||
export type RecordPlugin<TOptions = unknown> = { | ||
name: string; | ||
observer: (cb: Function, win: Window, options: TOptions) => listenerHandler; | ||
observer: (cb: Function, win: IWindow, options: TOptions) => listenerHandler; | ||
options: TOptions; | ||
}; | ||
|
||
|
@@ -598,3 +598,11 @@ export type ElementState = { | |
}; | ||
|
||
export type KeepIframeSrcFn = (src: string) => boolean; | ||
|
||
declare global { | ||
interface Window { | ||
FontFace: typeof FontFace; | ||
This comment has been minimized.
Sorry, something went wrong.
eoghanmurray
Contributor
|
||
} | ||
} | ||
|
||
export type IWindow = Window & typeof globalThis; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'm not sure what other
Logger
s were to be passed in here?Like was there another logger in mind that needed monkey patching?
If that other logger is loaded/defined independently within each iframe then we'd need to use a string so we can do
each_window[logger_name].prototype