add log and warn methods to cryptpad common
This commit is contained in:
@@ -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