Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiiaSvietlova committed Dec 19, 2024
1 parent f3444ec commit 6e623e5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class FullPageLoadPlugin implements Plugin<BrowserConfiguration> {

this.webVitals.attachTo(span)
this.spanFactory.endSpan(span, endTime)
if(this.appState === 'starting') {
if (this.appState === 'starting') {
this.setAppState('ready')
}
})
Expand Down
1 change: 0 additions & 1 deletion packages/platforms/browser/lib/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import makeBrowserPersistence from './persistence'
import createResourceAttributesSource from './resource-attributes-source'
import createSpanAttributesSource from './span-attributes-source'
import { WebVitals } from './web-vitals'
import type { AppState } from '../../../core/lib/core'

export let onSettle: OnSettlePlugin
export let DefaultRoutingProvider: ReturnType<typeof createDefaultRoutingProvider>
Expand Down
2 changes: 1 addition & 1 deletion packages/platforms/browser/lib/default-routing-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const createNoopRoutingProvider = () => {
export const createDefaultRoutingProvider = (onSettle: OnSettle, location: Location) => {
return class DefaultRoutingProvider implements RoutingProvider {
resolveRoute: RouteResolver

constructor (resolveRoute = defaultRouteResolver) {
this.resolveRoute = resolveRoute
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,13 @@ class BugsnagPluginReactNativeNavigationPerformance implements Plugin<ReactNativ
this.Navigation.events().registerComponentWillAppearListener(event => {
if (typeof this.startTime === 'number') {
clearTimeout(this.startTimeout)
this.setAppState('navigating')
this.setAppState('navigating')
const routeName = event.componentName
this.currentNavigationSpan = createNavigationSpan(spanFactory, routeName, { startTime: this.startTime })
this.currentNavigationSpan.setAttribute('bugsnag.navigation.triggered_by', '@bugsnag/plugin-react-native-navigation-performance')

if (this.previousRoute) {
this.currentNavigationSpan.setAttribute('bugsnag.navigation.previous_route', this.previousRoute)

}

this.previousRoute = routeName
Expand Down

0 comments on commit 6e623e5

Please sign in to comment.