diff options
-rw-r--r-- | south-african-id-parser.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/south-african-id-parser.js b/south-african-id-parser.js index 9b6d23f..81b2302 100644 --- a/south-african-id-parser.js +++ b/south-african-id-parser.js @@ -1,9 +1,13 @@ (function (global, factory) { 'use strict'; - typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : - typeof define === 'function' && define.amd ? define(factory) : + if (typeof exports === 'object' && typeof module !== 'undefined') { + module.exports = factory(); + } else if (typeof define === 'function' && define.amd) { + define(factory); + } else { global.saIdParser = factory(); + } }(this, (function () { 'use strict'; |