mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 06:23:16 +00:00
pass crawler to driver constructor
This commit is contained in:
parent
f341533398
commit
29f0e43530
1 changed files with 1 additions and 1 deletions
|
@ -1120,7 +1120,7 @@ self.__bx_behaviors.selectMainBehavior();
|
|||
try {
|
||||
const driverUrl = new URL(this.params.driver, import.meta.url);
|
||||
const Cls = (await import(driverUrl.href)).default;
|
||||
this.driver = new Cls();
|
||||
this.driver = new Cls(this);
|
||||
} catch (e) {
|
||||
logger.warn(`Error importing driver ${this.params.driver}`, e);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue