serialize-javascript icon indicating copy to clipboard operation
serialize-javascript copied to clipboard

Use fallback UID generation when main function failed

Open Exelenz9 opened this issue 4 years ago • 0 comments

The randombytes library may throw an error if the browser does not support the crypto. Probably, the good solution in this case would be using the old way of building an UID (took it from here) rather than stopping execution with a third-party library error.

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Exelenz9 avatar Nov 22 '20 17:11 Exelenz9