From d81b6947f6206238dfc96bd6467e9442ea18b895 Mon Sep 17 00:00:00 2001 From: pichalite Date: Wed, 10 Feb 2016 10:58:57 -0800 Subject: [PATCH] conditional change --- public/src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/app.js b/public/src/app.js index 0b23476968..9fbe1c9f14 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -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);