Download wp-calypso/client/performance-profiler/utils/profiler-version.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 251 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/performance-profiler/utils/profiler-version.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/performance-profiler/utils/profiler-version.ts
-
curl -L -o profiler-version.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/performance-profiler/utils/profiler-version.ts
251 Bytes
| export const profilerVersion = () => { | |
| if ( window.location.pathname.includes( '/sites/performance/' ) ) { | |
| return 'logged-in'; | |
| } else if ( window.location.pathname.includes( '/speed-test-tool' ) ) { | |
| return 'logged-out'; | |
| } | |
| return 'unknown'; | |
| }; | |