-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html2canvas not loaded when is injected as a option #2713
Comments
You are right. This is a bug and should be fixed. Could you prepare a pull request with your proposed solution? Maybe replace |
This is what I came with: Worker.prototype.isHtml2CanvasLoaded = function() {
var result = typeof this.opt.html2canvas === "function"
|| typeof global.html2canvas !== "undefined";
if (!result) {
throw new Error("html2canvas not loaded.");
}
return result;
};
|
This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant. |
I have to revoke my initial answer. The |
This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant. |
Error "html2canvas not loaded." when html2canvas is not in global but is as a option.
The error is here:
https://github.com/MrRio/jsPDF/blob/master/src/modules/html.js#L489
Proposal
Example:
The text was updated successfully, but these errors were encountered: