diff --git a/src/js/sha256.js b/src/js/sha256.js index fc0aef02..cc82d8ce 100644 --- a/src/js/sha256.js +++ b/src/js/sha256.js @@ -23,7 +23,7 @@ * @license MIT */ /*jslint bitwise: true */ -(function () { +var sha256 = (function () { 'use strict'; var ERROR = 'input is invalid type'; @@ -520,15 +520,5 @@ exports.sha256.hmac = createHmacMethod(); exports.sha224.hmac = createHmacMethod(true); - if (COMMON_JS) { - module.exports = exports; - } else { - root.sha256 = exports.sha256; - root.sha224 = exports.sha224; - if (AMD) { - define(function () { - return exports; - }); - } - } + return exports.sha256; })();