diff --git a/lib/persona.js b/lib/persona.js index aec7c3b..2c405ca 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -27,6 +27,10 @@ $(document).ready(function() { if (data.url.match('user/')) { setupFavouriteButtonOnProfile(); + } else if (data.url.match('^chats')) { + require(['persona/chats'], function(chats) { + chats.init(); + }); } }); } diff --git a/plugin.json b/plugin.json index 1664907..4f08c5d 100644 --- a/plugin.json +++ b/plugin.json @@ -5,6 +5,7 @@ "lib/persona.js", "lib/modules/nprogress.js", "lib/modules/autohidingnavbar.min.js", - "lib/modules/slideout.min.js" + "lib/modules/slideout.min.js", + "lib/client/chats.js" ] } \ No newline at end of file