MCPcopy Create free account
hub / github.com/code3-dev/dengvpn / getPreloadPath

Function getPreloadPath

main.js:51–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50// Function to get the preload script path
51function getPreloadPath() {
52 return app.isPackaged
53 ? path.join(__dirname, 'preload.js') // Already in dist folder in production
54 : path.join(__dirname, 'preload.js');
55}
56
57// Path to the xray config file
58const xrayConfigPath = path.join(getResourcePath('core'), 'xray');

Callers 1

createWindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected