fix(core): update
This commit is contained in:
		| @@ -15,12 +15,13 @@ export class SmartPdf { | |||||||
|   private _readyDeferred: plugins.smartpromise.Deferred<void>; |   private _readyDeferred: plugins.smartpromise.Deferred<void>; | ||||||
|   private _candidates: { [key: string]: PdfCandidate } = {}; |   private _candidates: { [key: string]: PdfCandidate } = {}; | ||||||
|  |  | ||||||
|   constructor(headlessBrowserArg?) { |   constructor() { | ||||||
|     this.headlessBrowser = headlessBrowserArg |  | ||||||
|     this._readyDeferred = new plugins.smartpromise.Deferred(); |     this._readyDeferred = new plugins.smartpromise.Deferred(); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   async start() { |   async start(headlessBrowserArg?) { | ||||||
|  |     // lets set the external browser in case one is provided | ||||||
|  |     this.headlessBrowser = headlessBrowserArg | ||||||
|     // setup puppeteer |     // setup puppeteer | ||||||
|     if (!this.headlessBrowser) { |     if (!this.headlessBrowser) { | ||||||
|       let  chromeArgs: string[] = []; |       let  chromeArgs: string[] = []; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user