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

--app flag not working for chrome #290

Closed
mhkeller opened this issue Nov 15, 2022 · 1 comment
Closed

--app flag not working for chrome #290

mhkeller opened this issue Nov 15, 2022 · 1 comment

Comments

@mhkeller
Copy link

I have the following command line command which works great on macOs

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --app="data:text/html,<html><body><script>window.moveTo(580,240);window.resizeTo(800,600);</script><h1>hi</h1></body></html>"

I'm trying to convert this to using this package but it's not loading the app content

import open from 'open';

await open.openApp(open.apps.chrome, {
	newInstance: true,
	arguments: [
		'--app="data:text/html,<html><body><script>window.moveTo(580,240);window.resizeTo(800,600);</script><h1>hi</h1></body></html>"'
	]
});

Any idea on what I'm doing wrong here?

@mhkeller
Copy link
Author

It works if I remove the quotes around the value for --app

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

No branches or pull requests

1 participant