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:
thePR0M3TH3AN
2025-06-21 18:58:23 -04:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

1
gui/electron/.npmrc Normal file
View File

@@ -0,0 +1 @@
save-exact=true

View File

@@ -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();