92edfb953d
* updates relayer, uses web-vital lib, removes fid polyfill and removes unstable prefix from relayer * simplify logic, fix null check * update docs * Update tests * Rename relayWebVitals to reportWebVitals Co-authored-by: housseindjirdeh <houssein@google.com>
15 lines
372 B
JavaScript
15 lines
372 B
JavaScript
/* global localStorage */
|
|
/* eslint-disable camelcase */
|
|
import App from 'next/app'
|
|
|
|
export default class MyApp extends App {}
|
|
|
|
/*
|
|
Method is experimental and will eventually be handled in a Next.js plugin
|
|
*/
|
|
export function reportWebVitals(data) {
|
|
localStorage.setItem(
|
|
data.name || data.entryType,
|
|
data.value !== undefined ? data.value : data.startTime
|
|
)
|
|
}
|