freedomjs / freedom

Embracing a distributed web
http://freedomjs.org
Apache License 2.0
512 stars 53 forks source link

explicitly check for defined navigator object in core.battery #324

Closed agallant closed 7 years ago

agallant commented 7 years ago

This is a fix for environments without the navigator object (such as node), which can fail (trying to refer to undefined) with the prior logic.

bemasc commented 7 years ago

:+1: