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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +1,4 @@
{
"dist/css/all.css": "dist/css/all-0a0328c0cc.css",
"dist/js/all.js": "dist/js/all-e705b7b737.js"
"dist/css/all.css": "dist/css/all-5f5b94f75a.css",
"dist/js/all.js": "dist/js/all-9c19e78dd3.js"
}

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 = {