Add a check at the point that the PDF will be drawn
Closed this issue · 1 comments
sscholle commented
Scenario:
User navigates away from page before PDF has loaded. The drawPDF callback triggers but the canvas element is no longer rendering.
Error:
TypeError: Cannot read property 'getContext' of null
Source:
Line 109 in 80c2025
Proposed solution:
add a simple check before getContext
is called.
sscholle commented
turns out my code is out of date....