Skip to content

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

Closed
justfortherec wants to merge 1 commit intomasterfrom
fix-118-cannot-find-module
Closed

Fix #118 and #116: Cannot find module '${HOME}/host.js'#1
justfortherec wants to merge 1 commit intomasterfrom
fix-118-cannot-find-module

Conversation

@justfortherec
Copy link
Copy Markdown
Owner

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, andy-portmen#116

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, andy-portmen#116
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