Download wp-calypso/client/document/utils/bilmur.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 460 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/document/utils/bilmur.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/document/utils/bilmur.js
-
curl -L -o bilmur.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/document/utils/bilmur.js
460 Bytes
| import config from '@automattic/calypso-config'; | |
| export function isBilmurEnabled() { | |
| return config.isEnabled( 'bilmur-script' ); | |
| } | |
| /** | |
| * Get the cache-busted URL for the bilmur script. | |
| */ | |
| export function getBilmurUrl() { | |
| const baseUrl = config( 'bilmur_url' ); | |
| if ( ! isBilmurEnabled() || ! baseUrl ) { | |
| return undefined; | |
| } | |
| const oneWeek = 1000 * 60 * 60 * 24 * 7; | |
| return `${ config( 'bilmur_url' ) }?w=${ Math.floor( Date.now() / oneWeek ) }`; | |
| } | |