Update init_chrome.sh
Browse files- init_chrome.sh +2 -2
init_chrome.sh
CHANGED
@@ -5,9 +5,9 @@ PROXY=${PROXY:-""}
|
|
5 |
|
6 |
# 检查是否需要设置代理
|
7 |
if [ -n "$PROXY" ]; then
|
8 |
-
CMD="/usr/bin/google-chrome-stable --remote-debugging-port=9200 --
|
9 |
else
|
10 |
-
CMD="/usr/bin/google-chrome-stable --remote-debugging-port=9200 --
|
11 |
fi
|
12 |
|
13 |
# 启动 Chrome 浏览器(后台运行)
|
|
|
5 |
|
6 |
# 检查是否需要设置代理
|
7 |
if [ -n "$PROXY" ]; then
|
8 |
+
CMD="/usr/bin/google-chrome-stable --remote-debugging-port=9200 --proxy-server=$PROXY --headless=new --no-sandbox --disable-gpu"
|
9 |
else
|
10 |
+
CMD="/usr/bin/google-chrome-stable --remote-debugging-port=9200 --headless=new --no-sandbox --disable-gpu"
|
11 |
fi
|
12 |
|
13 |
# 启动 Chrome 浏览器(后台运行)
|