andyperlitch / jsbn

The jsbn library is a fast, portable implementation of large-number math in pure JavaScript, enabling public-key crypto and other applications on desktop and mobile browsers.
Other
167 stars 41 forks source link

when I try to load this file in native, I get a errors related to navigator. #20

Open milhous opened 7 years ago

milhous commented 7 years ago

Hi Andyperlitch.

When I try to load this file in native, I get a error related to navigator:

ReferenceError: navigator is not defined.

When I add a check if those variables exist before calling an object within them, Like this...

if(typeof navigator === "undefined") var navigator = {};

it's working.

Could you pls update it into your code?

Thank you.

JhonSmithRomeroSolorzano commented 1 year ago

I got the same error