mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-08 05:30:40 +01:00
conditional change
This commit is contained in:
@@ -276,7 +276,7 @@ app.cacheBuster = null;
|
||||
if (err) {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
if (!ajaxify.currentPage.match(/^chats\//)) {
|
||||
if (!ajaxify.currentPage.startsWith('chats/')) {
|
||||
app.openChat(roomId);
|
||||
} else {
|
||||
ajaxify.go('chats/' + roomId);
|
||||
|
||||
Reference in New Issue
Block a user