Fix [object object] notification error with js

This commit is contained in:
Joseph Cohen
2016-02-17 13:32:56 -06:00
parent 42c8ee8adf
commit b8f89e97cd
4 changed files with 7 additions and 4 deletions
+3
View File
@@ -78,6 +78,9 @@ $(function() {
window.Cachet.Notifier = function () {
this.notify = function (message, type, options) {
if (_.isPlainObject(message)) {
message = message.detail;
}
type = (typeof type === 'undefined' || type === 'error') ? 'error' : type;
var defaultOptions = {