From: Steinar H. Gunderson Date: Sat, 20 Jun 2015 21:32:08 +0000 (+0200) Subject: Re-add the local change to make json_delta work under node.js. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=c22dc885ba5a973043a8e0964e29efb8e92c52e8 Re-add the local change to make json_delta work under node.js. --- diff --git a/www/js/json_delta.js b/www/js/json_delta.js index ab0c3e3..357fa7a 100644 --- a/www/js/json_delta.js +++ b/www/js/json_delta.js @@ -450,3 +450,6 @@ JSON_delta = { return struc; } }; + +// node.js +if (typeof exports !== 'undefined') exports.JSON_delta = JSON_delta;