Merge pull request from yariplus/patch-15

Allow sending Error objects to alertError instead of just plain strings.
v1.18.x
Barış Soner Uşaklı committed by GitHub
commit 0c9f61c629

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

Loading…
Cancel
Save