Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiiaSvietlova committed Dec 19, 2024
1 parent 752f910 commit b9e72b1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class FullPageLoadPlugin implements Plugin<BrowserConfiguration> {

this.webVitals.attachTo(span)
this.spanFactory.endSpan(span, endTime)
this.setAppState("ready")
this.setAppState('ready')
})
}
}
25 changes: 12 additions & 13 deletions packages/platforms/browser/lib/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { AppState } from '../../../core/lib/core'
export let onSettle: OnSettlePlugin
export let DefaultRoutingProvider: ReturnType<typeof createDefaultRoutingProvider>
let BugsnagPerformance: Client<BrowserConfiguration>
let setAppState: (appState: AppState) => void;
let setAppState: (appState: AppState) => void

if (typeof window === 'undefined' || typeof document === 'undefined') {
onSettle = createNoopOnSettle()
Expand All @@ -42,7 +42,6 @@ if (typeof window === 'undefined' || typeof document === 'undefined') {
xhrRequestTracker,
performance
)

DefaultRoutingProvider = createDefaultRoutingProvider(onSettle, window.location, setAppState)

BugsnagPerformance = createClient({
Expand All @@ -54,19 +53,19 @@ if (typeof window === 'undefined' || typeof document === 'undefined') {
idGenerator,
schema: createSchema(window.location.hostname, new DefaultRoutingProvider()),
plugins: (spanFactory, spanContextStorage, setAppState) => {
DefaultRoutingProvider.setAppState = setAppState('starting');
DefaultRoutingProvider.setAppState = setAppState('starting')
return [
onSettle,
new FullPageLoadPlugin(
document,
window.location,
spanFactory,
webVitals,
onSettle,
backgroundingListener,
performance,
setAppState
),
new FullPageLoadPlugin(
document,
window.location,
spanFactory,
webVitals,
onSettle,
backgroundingListener,
performance,
setAppState
),
// ResourceLoadPlugin should always come after FullPageLoad plugin, as it should use that

Check failure on line 69 in packages/platforms/browser/lib/browser.ts

View workflow job for this annotation

GitHub Actions / linting

Expected indentation of 8 spaces but found 6
// span context as the parent of it's spans

Check failure on line 70 in packages/platforms/browser/lib/browser.ts

View workflow job for this annotation

GitHub Actions / linting

Expected indentation of 8 spaces but found 6
new ResourceLoadPlugin(spanFactory, spanContextStorage, window.PerformanceObserver),

Check failure on line 71 in packages/platforms/browser/lib/browser.ts

View workflow job for this annotation

GitHub Actions / linting

Expected indentation of 8 spaces but found 6
Expand Down

0 comments on commit b9e72b1

Please sign in to comment.