diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 882ae2656..0f3ff4e9a 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -240,6 +240,12 @@ define([ return secret; }; + var uint8ArrayToHex = common.uint8ArrayToHex = function (a) { + return a.map(function (e) { + return Number(e & 0xff).toString(16); + }).join(''); + }; + var replaceHash = common.replaceHash = function (hash) { if (window.history && window.history.replaceState) { if (!/^#/.test(hash)) { hash = '#' + hash; }