plugins/browser-plugin-performance-timing/src/index.ts
Function PerformanceTimingPlugin
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function PerformanceTimingPlugin(): BrowserPlugin {
/**
* Creates a context from the window.performance.timing object
*
* @returns object PerformanceTiming context
Function getPerformanceTimingContext
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getPerformanceTimingContext() {
var windowAlias = window,
performanceAlias =
windowAlias.performance ||
windowAlias.mozPerformance ||