Download wp-calypso/desktop/app/lib/is-calypso/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 191 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/desktop/app/lib/is-calypso/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/desktop/app/lib/is-calypso/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/desktop/app/lib/is-calypso/index.js
191 Bytes
| const Config = require( '../../lib/config' ); | |
| const webBase = Config.baseURL(); | |
| module.exports = function ( mainWindow ) { | |
| return mainWindow.webContents.getURL().startsWith( webBase ); | |
| }; | |