use existing options.baseURL
This commit is contained in:
parent
418f5d2e81
commit
c8f2d6bed6
|
|
@ -109,7 +109,6 @@ export class Tracing extends SdkObject implements InstrumentationListener, Snaps
|
|||
this._contextCreatedEvent.browserName = context._browser.options.name;
|
||||
this._contextCreatedEvent.channel = context._browser.options.channel;
|
||||
this._contextCreatedEvent.options = context._options;
|
||||
this._contextCreatedEvent.baseURL = context._options.baseURL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ export type ContextEntry = {
|
|||
startTime: number;
|
||||
endTime: number;
|
||||
browserName: string;
|
||||
baseURL?: string;
|
||||
channel?: string;
|
||||
platform?: string;
|
||||
wallTime: number;
|
||||
|
|
|
|||
|
|
@ -85,7 +85,6 @@ export class TraceModernizer {
|
|||
this._version = event.version;
|
||||
contextEntry.origin = event.origin;
|
||||
contextEntry.browserName = event.browserName;
|
||||
contextEntry.baseURL = event.baseURL;
|
||||
contextEntry.channel = event.channel;
|
||||
contextEntry.title = event.title;
|
||||
contextEntry.platform = event.platform;
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ export class MultiTraceModel {
|
|||
const libraryContext = contexts.find(context => context.origin === 'library');
|
||||
|
||||
this.browserName = libraryContext?.browserName || '';
|
||||
this.baseURL = libraryContext?.baseURL;
|
||||
this.baseURL = libraryContext?.options.baseURL;
|
||||
this.sdkLanguage = libraryContext?.sdkLanguage;
|
||||
this.channel = libraryContext?.channel;
|
||||
this.testIdAttributeName = libraryContext?.testIdAttributeName;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ export type Size = { width: number, height: number };
|
|||
export type VERSION = 7;
|
||||
|
||||
export type BrowserContextEventOptions = {
|
||||
baseURL?: string,
|
||||
viewport?: Size,
|
||||
deviceScaleFactor?: number,
|
||||
isMobile?: boolean,
|
||||
|
|
@ -43,7 +44,6 @@ export type ContextCreatedTraceEvent = {
|
|||
options: BrowserContextEventOptions,
|
||||
sdkLanguage?: Language,
|
||||
testIdAttributeName?: string,
|
||||
baseURL?: string,
|
||||
};
|
||||
|
||||
export type ScreencastFrameTraceEvent = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue