chore(queue): Allow to pass browser instance
This commit is contained in:
parent
03c01bdfa0
commit
48fe8886f7
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ class QueueManager {
|
|||
private browser: Browser | null;
|
||||
private queue: QueueItem[];
|
||||
|
||||
constructor() {
|
||||
this.browser = null;
|
||||
constructor(browser: Browser | null = null) {
|
||||
this.browser = browser;
|
||||
this.queue = [];
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue