remove / from startsWith

v1.18.x
Barış Soner Uşaklı 9 years ago
parent 0516418da6
commit 82875de32d

@ -276,7 +276,7 @@ app.cacheBuster = null;
if (err) { if (err) {
return app.alertError(err.message); return app.alertError(err.message);
} }
if (!ajaxify.currentPage.startsWith('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