nightmare icon indicating copy to clipboard operation
nightmare copied to clipboard

Use either toPng or toPNG when screenshot

Open IDisposable opened this issue 5 years ago • 1 comments

If the img objects being resolved in electron don't have a toPng method, they may have a toPNG method depending on the version of electron being used.

This change will use the correct one or resolve with a ReferenceError

IDisposable avatar Mar 22 '19 21:03 IDisposable

Would we prefer to use Error than ReferenceError? Let me know and I'll adjust

IDisposable avatar Mar 22 '19 21:03 IDisposable