Skip to content
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

Fix DrawingUtils constructor failing in Web Workers #5489

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 19, 2024

  1. Fix DrawingUtils constructor failing in Web Workers

    Without this commit, the DrawingUtils constructor fails in Web Workers
    because the CanvasRenderingContext2D is not available in the worker
    context.
    This commit adds a check whether the CanvasRenderingContext2D is
    defined before using it.
    
    Fixes google-ai-edge#5284
    bc-lee committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    bcf2248 View commit details
    Browse the repository at this point in the history