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

This commit is contained in:
Timothy Fike
2016-11-17 18:08:44 -05:00
committed by GitHub
parent 7a10cffb25
commit 2d84c98565

View File

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