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

better browser/node detection #653

Merged
merged 2 commits into from
Nov 30, 2023
Merged

better browser/node detection #653

merged 2 commits into from
Nov 30, 2023

Conversation

Connum
Copy link
Contributor

@Connum Connum commented Nov 27, 2023

Description

Made browser/node context detection more reliable, so we'll pick the correct loading methods even when running in a WebWorker context.

Motivation and Context

close #174

How Has This Been Tested?

Can't really add a test for this, but checked that our tests (= Node) and docs (= Browser) still work

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I did npm run test and all tests passed green (including code styling checks).
  • I have added tests to cover my changes.
  • My change requires a change to the documentation.
  • I have updated the README accordingly.
  • I have read the CONTRIBUTING document.

@Connum Connum added the dev Changes revolving merely around dev-related code like testing, build process, etc. label Nov 27, 2023
@Connum Connum requested review from ILOVEPIE and yne November 27, 2023 00:43
@Connum Connum added this to the Release 2.0.0 milestone Nov 27, 2023
Connum added a commit to Connum/opentype.js-next that referenced this pull request Nov 28, 2023
Copy link
Contributor

@ILOVEPIE ILOVEPIE left a comment

Choose a reason for hiding this comment

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

I can't help but feel there's a better way to handle this, but this should be good for now.

@Connum Connum merged commit c27e6da into opentypejs:master Nov 30, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev Changes revolving merely around dev-related code like testing, build process, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using web workers
2 participants