From 6d775f61c683370f2c5fb7e75ff715ac32d86b55 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 29 Aug 2016 18:10:15 +0200 Subject: [PATCH] add missing functions --- www/common/cryptpad-common.js | 11 +++++++++++ 1 file changed, 11 insertions(+) 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;