Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

justfortherec
Copy link

@justfortherec justfortherec commented Jan 6, 2023

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: #118

@justfortherec justfortherec changed the title Fix #116 and #118: Cannot find module '${HOME}/host.js' Fix #116: Cannot find module '${HOME}/host.js' Jan 6, 2023
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#118
@justfortherec justfortherec changed the title Fix #116: Cannot find module '${HOME}/host.js' Fix #118: Cannot find module '${HOME}/host.js' Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Cannot find module '${HOME}/host.js'
1 participant