Skip to content

Node.js based forum software built for the modern web

dont crash if app.logout is called from code

Barış Soner Uşaklıbac2da0ace09
diff --git a/public/src/app.js b/public/src/app.js
index f56d894de8..aba4f10c99 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -107,7 +107,7 @@ app.cacheBuster = null;
};
app.logout = function (e) {
- e.preventDefault();
+ e && e.preventDefault();
$(window).trigger('action:app.logout');
/*