[英]How to launch chrome on fullscreen using nodejs
I have been trying to use node js libaray called opn. 我一直在尝试使用名为opn的节点js libaray。 I can use this libaray perfectly and able to launch the chrome using nodejs but I can't launch the app in kiose/fullscreen mode. 我可以完美地使用此libaray,并且能够使用nodejs启动chrome,但无法以纯色/全屏模式启动该应用程序。 I have tried different chrome command but nothing worked. 我尝试了其他chrome命令,但没有任何效果。
opn('http://localhost:2222', {app: ['chrome', '--kiosk']});
above code takes '--incognito' and launched incognito mode but --kiosk didn't launch kiosk mode. 上面的代码使用'--incognito'并启动了隐身模式,但--kiosk没有启动kiosk模式。 Can anyone suggest me how can I do this. 谁能建议我该怎么做。
Have you tried using the flag --start-fullscreen
? 您是否尝试过使用--start-fullscreen
标志? The Documentation suggests this would do the trick. 该文档建议这样做可以解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.