Prevent # being added to URL when minimizing

This commit is contained in:
JC Brand 2020-02-27 11:16:45 +01:00
parent 2af93f4492
commit 804c78de81

View File

@ -246,7 +246,8 @@ converse.plugins.add('converse-minimize', {
* Minimizes a chat box.
* @returns {_converse.ChatBoxView|_converse.ChatRoomView}
*/
minimize () {
minimize (ev) {
if (ev && ev.preventDefault) { ev.preventDefault(); }
this.model.minimize();
return this;
},