add log and warn methods to cryptpad common

pull/1/head
ansuz 2016-07-08 16:45:15 +02:00
parent 7889dc40f2
commit 7504f79e05
1 changed files with 8 additions and 0 deletions

View File

@ -281,5 +281,13 @@ define([
});
};
common.log = function (msg) {
Alertify.success(msg);
};
common.warn = function (msg) {
Alertify.error(msg);
};
return common;
});