add log and warn methods to cryptpad common
This commit is contained in:
1 parent
7889dc40f2
commit
7504f79e05
1 file changed
+8
@@ -281,5 +281,13 @@ define([
|
||||
});
|
||||
};
|
||||
|
||||
common.log = function (msg) {
|
||||
Alertify.success(msg);
|
||||
};
|
||||
|
||||
common.warn = function (msg) {
|
||||
Alertify.error(msg);
|
||||
};
|
||||
|
||||
return common;
|
||||
});
|
||||
Reference in new issue
Block a user