Node.js based forum software built for the modern web
Allow sending Error objects to alertError instead of just plain strings.
Timothy Fike2d84c9856584
diff --git a/public/src/app.js b/public/src/app.jsindex ba1f6d39ff..cb2775eda2 100644--- a/public/src/app.js+++ b/public/src/app.js@@ -134,6 +134,8 @@ app.cacheBuster = null;};app.alertError = function (message, timeout) {+ message = message.message || message+if (message === '[[error:invalid-session]]') {return app.handleInvalidSession();}