Closed Em-AK closed 3 years ago
Actually this fix is not working in advanced compilation mode ...
Thanks for reporting and fixing. I'll look at it today.
@Em-AK I wouldn't want to put support for IE11 in the library itself. However, you can support it locally. This should help:
;; IE11 support
(when-not (exists? js/crypto)
(set! js/crypto js/msCrypto))
Borrowed this solution from here. Just make sure that the code above has evaluated before nano-id is call.
Please, respond after checking it, I will put this example in the readme.
@Em-AK have you checked?
I'll come back to it in a week or two :beach_umbrella:
Following advice documented on MDN: https://developer.mozilla.org/en-US/docs/Web/API/Window/crypto
Maybe not the most elegant way to solve this. So feel free to edit, or ask me to do it. This is how I made it work for my app.