conditional change

v1.18.x
pichalite 9 years ago
parent d83b11dde3
commit d81b6947f6

@ -276,7 +276,7 @@ app.cacheBuster = null;
if (err) { if (err) {
return app.alertError(err.message); return app.alertError(err.message);
} }
if (!ajaxify.currentPage.match(/^chats\//)) { if (!ajaxify.currentPage.startsWith('chats/')) {
app.openChat(roomId); app.openChat(roomId);
} else { } else {
ajaxify.go('chats/' + roomId); ajaxify.go('chats/' + roomId);

Loading…
Cancel
Save