fix unloading, fix hardcoding to be added to list

bump to 1.5.0-beta.1
This commit is contained in:
Ilya Kreymer 2024-12-06 17:33:35 -08:00
parent 34f515b67d
commit d6ade9cc61
3 changed files with 6 additions and 4 deletions

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{ {
"name": "browsertrix-crawler", "name": "browsertrix-crawler",
"version": "1.5.0-beta.0", "version": "1.5.0-beta.1",
"main": "browsertrix-crawler", "main": "browsertrix-crawler",
"type": "module", "type": "module",
"repository": "https://github.com/webrecorder/browsertrix-crawler", "repository": "https://github.com/webrecorder/browsertrix-crawler",

View file

@ -705,11 +705,13 @@ class ArgParser {
// background behaviors to apply // background behaviors to apply
const behaviorOpts: { [key: string]: string | boolean } = {}; const behaviorOpts: { [key: string]: string | boolean } = {};
if (argv.behaviors.length > 0) { if (argv.behaviors.length > 0) {
// for now, always enable autoclick
if (argv.behaviors.indexOf("autoclick") < 0) {
argv.behaviors.push("autoclick");
}
argv.behaviors.forEach((x: string) => (behaviorOpts[x] = true)); argv.behaviors.forEach((x: string) => (behaviorOpts[x] = true));
behaviorOpts.log = BEHAVIOR_LOG_FUNC; behaviorOpts.log = BEHAVIOR_LOG_FUNC;
behaviorOpts.startEarly = true; behaviorOpts.startEarly = true;
// for now, always enable autoclick
behaviorOpts.autoclick = true;
argv.behaviorOpts = JSON.stringify(behaviorOpts); argv.behaviorOpts = JSON.stringify(behaviorOpts);
} else { } else {
argv.behaviorOpts = ""; argv.behaviorOpts = "";