Skip to content

Commit 82eae86

Browse files
committed
chore: node selection based on tauri env preparing for electron port
1 parent 70fc688 commit 82eae86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ function nodeLoader() {
642642
if (Phoenix.platform === "win" && nodeSrcPath.startsWith('\\\\?\\')) {
643643
nodeSrcPath = nodeSrcPath.slice(4);
644644
}
645-
if(Phoenix.platform === "linux") {
645+
if(Phoenix.platform === "linux" && window.__TAURI__) {
646646
// in linux installed distributions, src-node is present in the same dir as the executable.
647647
const cliArgs = await window.__TAURI__.invoke('_get_commandline_args');
648648
nodeSrcPath = `${window.path.dirname(cliArgs[0])}/src-node/index.js`;

0 commit comments

Comments
 (0)