browserify / randombytes

random bytes from browserify stand alone
MIT License
99 stars 47 forks source link

Use globalThis if available #34

Closed bneijt closed 1 year ago

bneijt commented 1 year ago

Use globalThis if available.

Closes #29

abhishiv commented 1 year ago

Just hit this bug as well. In my case it breaks the simple-peer package from working in SharedWorker.

EDIT: Temp fix

import Peer from "simple-peer/simplepeer.min.js";

But would be great to have this merged and fixed

dcousens commented 1 year ago

Resolves https://github.com/browserify/randombytes/issues/22