Skip to content

Commit

Permalink
fix unloading, fix hardcoding to be added to list
Browse files Browse the repository at this point in the history
bump to 1.5.0-beta.1
  • Loading branch information
ikreymer committed Dec 7, 2024
1 parent 34f515b commit d6ade9c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion behaviors.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "browsertrix-crawler",
"version": "1.5.0-beta.0",
"version": "1.5.0-beta.1",
"main": "browsertrix-crawler",
"type": "module",
"repository": "https://github.com/webrecorder/browsertrix-crawler",
Expand Down
6 changes: 4 additions & 2 deletions src/util/argParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -705,11 +705,13 @@ class ArgParser {
// background behaviors to apply
const behaviorOpts: { [key: string]: string | boolean } = {};
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));
behaviorOpts.log = BEHAVIOR_LOG_FUNC;
behaviorOpts.startEarly = true;
// for now, always enable autoclick
behaviorOpts.autoclick = true;
argv.behaviorOpts = JSON.stringify(behaviorOpts);
} else {
argv.behaviorOpts = "";
Expand Down

0 comments on commit d6ade9c

Please sign in to comment.