diff --git a/gui/electron/.npmrc b/gui/electron/.npmrc new file mode 100644 index 0000000..cffe8cd --- /dev/null +++ b/gui/electron/.npmrc @@ -0,0 +1 @@ +save-exact=true diff --git a/gui/electron/tor.js b/gui/electron/tor.js index d3aeca3..c8a9cdf 100644 --- a/gui/electron/tor.js +++ b/gui/electron/tor.js @@ -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();