Add "disable-background-networking" to excluded switches

This commit is contained in:
hensm
2018-12-28 15:06:50 +00:00
parent fbf271169e
commit 30832a6d6b

View File

@@ -32,9 +32,8 @@ const firefoxOptions = new firefox.Options()
const chromeOptions = new chrome.Options()
.headless()
.excludeSwitches("disable-default-apps")
.addArguments(
`--user-data-dir=${path.resolve(__dirname, "ChromeProfile")}`);
.excludeSwitches([ "disable-background-networking"
, "disable-default-apps"]);
async function create () {