mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-10-09 23:13:22 +08:00
启动浏览器实例添加窗口位置参数
This commit is contained in:
@@ -119,6 +119,7 @@ const startClient = async (options) => {
|
||||
proxy = null,
|
||||
browserPath = getBrowserPath(browserType),
|
||||
windowSize = null,
|
||||
windowPosition = null,
|
||||
incognito = false,
|
||||
headless = false,
|
||||
disableExtensions = false,
|
||||
@@ -150,6 +151,7 @@ const startClient = async (options) => {
|
||||
|
||||
const optionArgs = [
|
||||
windowSize ? `--window-size=${windowSize}` : "--start-maximized",
|
||||
windowPosition ? `--window-position=${windowPosition}` : "",
|
||||
proxy ? `--proxy-server=${proxy}` : "",
|
||||
incognito ? incognitoArg[browserType] : "",
|
||||
headless ? "--headless" : "",
|
||||
|
Reference in New Issue
Block a user