native-client icon indicating copy to clipboard operation
native-client copied to clipboard

Fix #118: Cannot find module '${HOME}/host.js'

Open justfortherec opened this issue 2 years ago • 0 comments

It appears that Firefox starts the native client from $HOME as the working directory. That leads to the script resolving the relative path host.js as $HOME/host.js.

This fix prefixes the host.js filename with the directory of the run.sh file. Now it works regardless of the working directory and regardless of the directory in which run.sh and the JavaScript files are located (as long as they are in the same location).

Fix: andy-portmen/native-client#118

justfortherec avatar Jan 06 '23 10:01 justfortherec