|
|
@ -3,6 +3,7 @@ import fs from 'node:fs'; |
|
|
|
import path from 'node:path'; |
|
|
|
import path from 'node:path'; |
|
|
|
import { fileURLToPath } from 'url'; |
|
|
|
import { fileURLToPath } from 'url'; |
|
|
|
import ClientLogPlugin from '../plugin/ClientLogPlugin.mjs'; |
|
|
|
import ClientLogPlugin from '../plugin/ClientLogPlugin.mjs'; |
|
|
|
|
|
|
|
import common from '../lib/common.mjs'; |
|
|
|
|
|
|
|
|
|
|
|
class HeroBot { |
|
|
|
class HeroBot { |
|
|
|
constructor(heroCloudServer) { |
|
|
|
constructor(heroCloudServer) { |
|
|
@ -34,12 +35,10 @@ class HeroBot { |
|
|
|
let options = { |
|
|
|
let options = { |
|
|
|
userAgent: configs.userAgent, |
|
|
|
userAgent: configs.userAgent, |
|
|
|
viewport: configs.viewport, |
|
|
|
viewport: configs.viewport, |
|
|
|
showChrome: configs.showChrome, |
|
|
|
|
|
|
|
showChromeInteractions: configs.showChromeInteractions, |
|
|
|
|
|
|
|
showDevtools: configs.showDevtools, |
|
|
|
|
|
|
|
showChromeAlive: configs.showChromeAlive, |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
options = common.mergeConfigs(configs.botOptions, options); |
|
|
|
|
|
|
|
|
|
|
|
if (this.heroServer) { |
|
|
|
if (this.heroServer) { |
|
|
|
options.connectionToCore = this.heroServer; |
|
|
|
options.connectionToCore = this.heroServer; |
|
|
|
} |
|
|
|
} |
|
|
|