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

请问怎样在代码中指定,使浏览器一直在前台显示呢?// How to make Browser always display by code, without "-rod=show" arg before run ? #948

Closed
Assiyvril opened this issue Sep 24, 2023 · 1 comment
Labels
question Questions related to rod

Comments

@Assiyvril
Copy link

Assiyvril commented Sep 24, 2023

Rod Version: v0.114.3

文档上的示例是,用 -rod 命令行参数运行:
image

怎样才能在代码中直接实现这个效果,而不需要使用参数运行呢?

@Assiyvril Assiyvril added the question Questions related to rod label Sep 24, 2023
@Assiyvril Assiyvril changed the title 请问怎样在代码中指定,使浏览器一直在前台显示呢? 请问怎样在代码中指定,使浏览器一直在前台显示呢?// How to make Browser always display by code, without "-rod=show" arg before run ? Sep 24, 2023
@Assiyvril
Copy link
Author

问题已解决,禁用 Headless 参数。
从源码中看到,Launcher 有个 Headless 方法,调用即可。
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions related to rod
Projects
None yet
Development

No branches or pull requests

1 participant