(win, attribute)
| 144 | * @return {ResolverReturnDef} |
| 145 | */ |
| 146 | export function getNavigationData(win, attribute) { |
| 147 | const navigationInfo = win['performance'] && win['performance']['navigation']; |
| 148 | if (!navigationInfo || navigationInfo[attribute] === undefined) { |
| 149 | // PerformanceNavigation interface is not supported or attribute is not |
| 150 | // implemented. |
| 151 | return; |
| 152 | } |
| 153 | return navigationInfo[attribute]; |
| 154 | } |
| 155 | |
| 156 | /** |
| 157 | * A class to provide variable substitution related features. Extend this class |
no outgoing calls
no test coverage detected