Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
const path = require( 'node:path' );
const { app } = require( 'electron' );
const Config = require( '../../lib/config' );
module.exports = function () {
const protocol = Config.protocol;
if ( process.defaultApp ) {
if ( process.argv.length >= 2 ) {
app.setAsDefaultProtocolClient( protocol, process.execPath, [
path.resolve( process.argv[ 1 ] ),
] );
}
} else {
app.setAsDefaultProtocolClient( protocol );
}
};