mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 13:41:05 +00:00
Update chrome.js
This commit is contained in:
parent
3d15aef7c9
commit
3f961cd7a2
|
@ -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 + "\"");
|
||||||
|
|
||||||
|
@ -264,7 +270,9 @@ var ChromeObject = function() {
|
||||||
cmd.push("--user-data-dir=\"" + this.userDataDir + "\"");
|
cmd.push("--user-data-dir=\"" + this.userDataDir + "\"");
|
||||||
|
|
||||||
// set user agent
|
// set user agent
|
||||||
|
if (this.userAgent != null) {
|
||||||
cmd.push("--user-agent=\"" + this.userAgent + "\"");
|
cmd.push("--user-agent=\"" + this.userAgent + "\"");
|
||||||
|
}
|
||||||
|
|
||||||
// set URL
|
// set URL
|
||||||
cmd.push("\"" + url + "\"");
|
cmd.push("\"" + url + "\"");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user