-
Notifications
You must be signed in to change notification settings - Fork 466
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
Issue-24918: Favorite pages: print the error message from the HTML2Canvas lib to the console #24936
Conversation
…e-error-message-from-the-html2canvas-lib-to-the-console
...i/src/app/portlets/dot-edit-page/components/dot-favorite-page/dot-favorite-page.component.ts
Show resolved
Hide resolved
…e-error-message-from-the-html2canvas-lib-to-the-console
@@ -34,6 +36,8 @@ export class DotHtmlToImage { | |||
}).then((canvas) => { | |||
canvas.toBlob((blob) => { | |||
const fileObj = new File([blob], 'image.png'); | |||
const iframe = parent.document.querySelector('#${this.iframeId}'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you check if this shouldn't be a be a backtick, instead of a single quote?
const iframe = parent.document.querySelector(`#${this.iframeId}`);
also on lines 42 and 49
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proposed Changes
🤖 Generated by Copilot at 2550ba3
Improved the functionality and appearance of the
dot-favorite-page
component and thedot-html-to-image
component. Fixed an unused import and added error handling in the former, and enhanced iframe loading and rendering in the latter. Adjusted the height and position of the components to avoid extra space and overlapping.Checklist
Additional Info
** any additional useful context or info **
Screenshots
Screen.Recording.2023-05-17.at.5.41.14.PM.mov
Screen.Recording.2023-05-17.at.5.42.27.PM.mov