mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2025-09-08 06:58:42 +00:00
Merge pull request #94 from PR0M3TH3AN/codex/fix-electron-compatibility-with-get-port-6.x
Fix ES module import for get-port
This commit is contained in:
1
gui/electron/.npmrc
Normal file
1
gui/electron/.npmrc
Normal file
@@ -0,0 +1 @@
|
||||
save-exact=true
|
@@ -1,6 +1,6 @@
|
||||
const { spawn } = require('child_process');
|
||||
const path = require('path');
|
||||
const getPort = require('get-port');
|
||||
const getPort = (...args) => import('get-port').then(m => m.default(...args));
|
||||
|
||||
async function launchTor() {
|
||||
const socks = await getPort();
|
||||
|
Reference in New Issue
Block a user