Fix handling of nodejs module stuff when loaded in the browser.
This commit is contained in:
parent
65a0f7f963
commit
d75cc94e40
|
@ -310,6 +310,6 @@ registration_from_hexid = (function () {
|
||||||
})();
|
})();
|
||||||
|
|
||||||
// make nodejs happy:
|
// make nodejs happy:
|
||||||
if (module) {
|
if (typeof module !== 'undefined') {
|
||||||
module.exports = registration_from_hexid;
|
module.exports = registration_from_hexid;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue