Skip to content

Commit

Permalink
remove FooNavigator
Browse files Browse the repository at this point in the history
  • Loading branch information
dashed committed Oct 9, 2020
1 parent b41c104 commit e0d238d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/tracing/src/browser/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import { NavigatorDeviceMemory, NavigatorNetworkInformation } from './web-vitals

const global = getGlobalObject<Window>();

type FooNavigator = Navigator & NavigatorNetworkInformation & NavigatorDeviceMemory;

type BrowserContext = {
effectiveConnectionType?: string;
deviceMemory?: number;
Expand Down Expand Up @@ -144,7 +142,7 @@ export class MetricsInstrumentation {
* Capture the information of the user agent.
*/
private _trackNavigator(): void {
const navigator = window.navigator as null | FooNavigator;
const navigator = window.navigator as null | (Navigator & NavigatorNetworkInformation & NavigatorDeviceMemory);

// track network connectivity

Expand Down

0 comments on commit e0d238d

Please sign in to comment.