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

Missing crypto.subtle #144

Closed
jeluard opened this issue Jun 6, 2023 · 2 comments
Closed

Missing crypto.subtle #144

jeluard opened this issue Jun 6, 2023 · 2 comments
Labels
need/author-input Needs input from the original author

Comments

@jeluard
Copy link

jeluard commented Jun 6, 2023

With recent build of helia it appears that the crypto.subtle object is missing.
It can be reproduce by using yarn start on examples/helia-esbuild

I would assume that this is not expected?

@achingbrain
Copy link
Member

crypto.subtle is a JavaScript API and not something Helia bundles.

Are you accessing the web page from a secure context?

@achingbrain achingbrain added the need/author-input Needs input from the original author label Jun 7, 2023
@jeluard
Copy link
Author

jeluard commented Jun 7, 2023

Are you accessing the web page from a secure context?

It's a dev env, accessed via localhost, which is a secure context.

crypto.subtle is a JavaScript API and not something Helia bundles.

For sure. What I observed is that under some circumstances, while crypto was defined, crypto.subtle wasn't. It appeared to me related to the version of helia. Now I can't reproduce anymore, and it is unclear to me what changed.

I will reopen with more details if I can reproduce reliably.

@jeluard jeluard closed this as completed Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/author-input Needs input from the original author
Projects
No open projects
Development

No branches or pull requests

2 participants