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 SparkAR usage #124

Merged
merged 1 commit into from
Dec 28, 2021
Merged

Fix SparkAR usage #124

merged 1 commit into from
Dec 28, 2021

Conversation

marcofugaro
Copy link
Member

Fixes #86

In SparkAR:

  • no window available
  • no globalThis available
  • no require('perf_hooks') available

This makes performance.now() default to Date.now() in SparkAR case

@marcofugaro marcofugaro merged commit 037d5a6 into master Dec 28, 2021
@marcofugaro marcofugaro deleted the fix-spark-ar branch December 28, 2021 17:58
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.

Error thrown when used in SparkAR, where cannon.js works
1 participant