mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-08 07:40:05 +01:00
dont crash if app.logout is called from code
This commit is contained in:
@@ -107,7 +107,7 @@ app.cacheBuster = null;
|
||||
};
|
||||
|
||||
app.logout = function (e) {
|
||||
e.preventDefault();
|
||||
e && e.preventDefault();
|
||||
$(window).trigger('action:app.logout');
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user