fix chat on mobile

main
barisusakli 8 years ago
parent e22786fad2
commit faf07be17a

@ -25,12 +25,12 @@ $(document).ready(function() {
NProgress.done();
setupHoverCards();
if (data.url && data.url.match('user/')) {
setupFavouriteButtonOnProfile();
} else if (data.url && data.url.match('^chats')) {
if (data.url && data.url.match('^user/.+/chats')) {
require(['persona/chats'], function(chats) {
chats.init();
});
} else if (data.url && data.url.match('user/')) {
setupFavouriteButtonOnProfile();
}
});
}

Loading…
Cancel
Save