Fix [object object] notification error with js
This commit is contained in:
2
public/build/dist/css/all-0a0328c0cc.css → public/build/dist/css/all-5f5b94f75a.css
vendored
Normal file → Executable file
2
public/build/dist/css/all-0a0328c0cc.css → public/build/dist/css/all-5f5b94f75a.css
vendored
Normal file → Executable file
File diff suppressed because one or more lines are too long
2
public/build/dist/js/all-e705b7b737.js → public/build/dist/js/all-9c19e78dd3.js
vendored
Normal file → Executable file
2
public/build/dist/js/all-e705b7b737.js → public/build/dist/js/all-9c19e78dd3.js
vendored
Normal file → Executable file
File diff suppressed because one or more lines are too long
@@ -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"
|
||||
}
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user