Update chrome.js

This commit is contained in:
Namhyeon Go 2022-01-09 02:09:50 +09:00 committed by GitHub
parent 3d15aef7c9
commit 3f961cd7a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,6 +251,12 @@ var ChromeObject = function() {
// disable popop blocking // disable popop blocking
cmd.push("--disable-popup-blocking"); cmd.push("--disable-popup-blocking");
// disable 3D
cmd.push("--disable-3d-apis");
// block non-proxyed webrtc traffic
cmd.push("--force-webrtc-ip-handling-policy=disable-non-proxied-udp");
// set profile directory // set profile directory
cmd.push("--profile-directory=\"" + this.profileName + "\""); cmd.push("--profile-directory=\"" + this.profileName + "\"");
@ -263,8 +269,10 @@ var ChromeObject = function() {
// set user data directory // set user data directory
cmd.push("--user-data-dir=\"" + this.userDataDir + "\""); cmd.push("--user-data-dir=\"" + this.userDataDir + "\"");
// set user agent // set user agent
cmd.push("--user-agent=\"" + this.userAgent + "\""); if (this.userAgent != null) {
cmd.push("--user-agent=\"" + this.userAgent + "\"");
}
// set URL // set URL
cmd.push("\"" + url + "\""); cmd.push("\"" + url + "\"");