diff --git a/app/assets/js/scripts/landing.js b/app/assets/js/scripts/landing.js index e0ba0f2..4ca5a9c 100644 --- a/app/assets/js/scripts/landing.js +++ b/app/assets/js/scripts/landing.js @@ -692,9 +692,11 @@ async function dlAsync(login = true) { DistroAPI.isDevMode() ) - const receiverPatchPath = path.join(__dirname, '..', 'vanillapatch.js') + const receiverPatchPath = path + .resolve(__dirname, '..', 'vanillapatch.js') + .replace(/\\/g, '/') const existingNodeOptions = process.env.NODE_OPTIONS?.trim() - const receiverNodeOptions = `--require=\"${receiverPatchPath}\"` + const receiverNodeOptions = `--require=${receiverPatchPath}` fullRepairModule.spawnReceiver({ NODE_OPTIONS: existingNodeOptions != null && existingNodeOptions.length > 0