mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-03 21:30:06 +01:00
Allow sending Error objects to alertError instead of just plain strings.
This commit is contained in:
@@ -134,6 +134,8 @@ app.cacheBuster = null;
|
||||
};
|
||||
|
||||
app.alertError = function (message, timeout) {
|
||||
message = message.message || message
|
||||
|
||||
if (message === '[[error:invalid-session]]') {
|
||||
return app.handleInvalidSession();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user