diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 13780995c..d6e962d9c 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -35,6 +35,17 @@ define([ var isArray = function (o) { return Object.prototype.toString.call(o) === '[object Array]'; }; + var fixHTML = common.fixHTML = function (html) { + return html.replace(/ len) { + return text.slice(0, len) + '…'; + } + return text; + }; + common.redirect = function (hash) { var hostname = window.location.hostname;