From d75cc94e4050b050632d0290fad3599c6a918bef Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sat, 10 Sep 2016 17:51:57 +0100 Subject: [PATCH] Fix handling of nodejs module stuff when loaded in the browser. --- public_html/registrations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/registrations.js b/public_html/registrations.js index 353717f..fc1102d 100644 --- a/public_html/registrations.js +++ b/public_html/registrations.js @@ -310,6 +310,6 @@ registration_from_hexid = (function () { })(); // make nodejs happy: -if (module) { +if (typeof module !== 'undefined') { module.exports = registration_from_hexid; }