From 7504f79e057b417576b41e0e6cc5a98e4e5bc254 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 8 Jul 2016 16:45:15 +0200 Subject: [PATCH] add log and warn methods to cryptpad common --- www/common/cryptpad-common.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index b307c0c92..aa740cefd 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -281,5 +281,13 @@ define([ }); }; + common.log = function (msg) { + Alertify.success(msg); + }; + + common.warn = function (msg) { + Alertify.error(msg); + }; + return common; });