You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug was found while running vite dev on a SvelteKit site, very possible it's related to vite, but regardless seems like the correct reference in the browser is window.crypto
The text was updated successfully, but these errors were encountered:
dskvr
changed the title
Needs work in web
Web: TypeError: Cannot read properties of undefined (reading 'subtle')
Apr 14, 2024
TypeError: Cannot read properties of undefined (reading 'subtle')
in the bundle:
const hash = await node_crypto_1.webcrypto.subtle.digest(algorithm, data);
reading webcrypto documentation I found
window.crypto.subtle
executed in console:
window.crypto.subtle
returnsThis bug was found while running
vite dev
on a SvelteKit site, very possible it's related to vite, but regardless seems like the correct reference in the browser iswindow.crypto
The text was updated successfully, but these errors were encountered: