Download wp-calypso/client/lib/jetpack/is-jetpack-checkout.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 427 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/jetpack/is-jetpack-checkout.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/jetpack/is-jetpack-checkout.ts
-
curl -L -o is-jetpack-checkout.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/jetpack/is-jetpack-checkout.ts
427 Bytes
| /* | |
| The function isJetpackCheckout() is used to determine if the current page is a Jetpack checkout page. | |
| It always returns false on the server side as window object is not available there (assumption that checkout pages are not rendered server-side). | |
| */ | |
| const isJetpackCheckout = () => | |
| 'undefined' !== typeof document && window.location.pathname.startsWith( '/checkout/jetpack' ); | |
| export default isJetpackCheckout; | |