dont crash if app.logout is called from code

This commit is contained in:
Barış Soner Uşaklı
2018-01-08 15:25:08 -05:00
parent 7eab9f6ab0
commit bac2da0ace

View File

@@ -107,7 +107,7 @@ app.cacheBuster = null;
};
app.logout = function (e) {
e.preventDefault();
e && e.preventDefault();
$(window).trigger('action:app.logout');
/*