From bac2da0ace0903c46207aa2f24b50e98f56a1404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 8 Jan 2018 15:25:08 -0500 Subject: [PATCH] dont crash if app.logout is called from code --- public/src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); /*