phimage/Erik

Change the timeout

noamalffasy opened this issue · 2 comments

Hi!

Is it possible to change the timeout on the evaluate JS function?
I'm running a promise in the JS so I need to extend the timeout.

Yes you can try

let engine = Erik.sharedInstance.layoutEngine as? WebKitLayoutEngine
engine?.javaScriptWaitTime=60

That worked, thanks!