fix electron get-port ESM

This commit is contained in:
thePR0M3TH3AN
2025-06-21 18:58:09 -04:00
parent faccd8400b
commit ffe4ebcacb
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();