Hi Folks, I want to access `window.crypto` via `...
# compose-web
a
Hi Folks, I want to access
window.crypto
via
import kotlinx.browser.window
within my kotlin/js project but it doesn't see to work. anyone ? Is there a separate dependency that needs to be imported ?
c
🤔 looks like it’s only available in workers
🚫 1
a
If web can access it via window.crypto it should be available on wasm too right ?
c
In js I guess but not in wasm.
a
But wasm can call js too ?
h
It’s not only available in workers but the stdlib does not include it (yet). Just create the expected declaration manually.
👍 1
a
Will try that, thanks philip!
t
All stable browser declarations already available in
kotlin-browser
- https://github.com/JetBrains/kotlin-wrappers/tree/master/kotlin-browser
💯 1
🙌 1
💯 1