Allow sending Error objects to alertError instead of just plain strings.

v1.18.x
Timothy Fike 8 years ago committed by GitHub
parent 7a10cffb25
commit 2d84c98565

@ -134,6 +134,8 @@ app.cacheBuster = null;
};
app.alertError = function (message, timeout) {
message = message.message || message
if (message === '[[error:invalid-session]]') {
return app.handleInvalidSession();
}

Loading…
Cancel
Save