Skip to content

fixed screenshot function. - #131

Merged
veronika-tseleva-cleantalk merged 1 commit into
devfrom
fix_55346-2
Sep 8, 2026
Merged

veronika-tseleva-cleantalk merged 1 commit into
devfrom
fix_55346-2

Conversation

@veronika-tseleva-cleantalk

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings September 8, 2026 13:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The dom-to-image error path now loses the underlying error details after debug logs were removed, making failures materially harder to diagnose.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR adjusts the screenshot capture flow in FileUploader.makeScreenshot() by tightening the dom-to-image timeout and removing temporary debug logging, with corresponding rebuild output updates in the distributed bundles.

Changes:

  • Reduced the dom-to-image render timeout from 15s to 10s.
  • Removed several debug console.log(...) statements from the dom-to-image screenshot path.
  • Propagated the same changes into the generated dist/ bundle outputs (minified and non-minified).
File summaries
File Description
js/src/fileuploader.js Updates screenshot timeout and removes debug logs in the dom-to-image path.
dist/doboard-widget-bundle.js Built bundle update reflecting the same screenshot-timeout/logging changes.
dist/doboard-widget-bundle.min.js Minified built bundle update reflecting the same screenshot-timeout/logging changes.
Review details
  • Files reviewed: 1/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread js/src/fileuploader.js
}
}
console.log(7);
throw new Error('Screenshot failed due to CORS');
@veronika-tseleva-cleantalk
veronika-tseleva-cleantalk merged commit 7f59cb9 into dev Sep 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants