mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2025-09-09 07:28:43 +00:00
fix electron get-port ESM
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 { spawn } = require('child_process');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const getPort = require('get-port');
|
const getPort = (...args) => import('get-port').then(m => m.default(...args));
|
||||||
|
|
||||||
async function launchTor() {
|
async function launchTor() {
|
||||||
const socks = await getPort();
|
const socks = await getPort();
|
||||||
|
Reference in New Issue
Block a user