You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to open a local page (not even served with a local server, just served by the filesystem itself) and supply a URL parameter, but I'm getting an error message.
Example:
var open = require('open');
open('./a/local/file.html?param=hello');
I'm guessing it interprets the entirety of the string as the filename.
Interestingly, if I pass chrome as the second argument, it successfully opens chrome, but it just uses the url ./a/local/file.html?param=hello directly rather than adding the path to the file (as it does without the url parameter).
My current workaround is to prepend __dirname to the path, but I still have to supply the second argument:
First, thanks for this package!
I'm trying to open a local page (not even served with a local server, just served by the filesystem itself) and supply a URL parameter, but I'm getting an error message.
Example:
I'm guessing it interprets the entirety of the string as the filename.
Interestingly, if I pass
chrome
as the second argument, it successfully opens chrome, but it just uses the url./a/local/file.html?param=hello
directly rather than adding the path to the file (as it does without the url parameter).My current workaround is to prepend
__dirname
to the path, but I still have to supply the second argument:Out-of-the-box support for this (without having to specify the secondary argument) would be nice :)
Thanks,
-Max
The text was updated successfully, but these errors were encountered: