Skip to content

Node.js based forum software built for the modern web

please eslint

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