From: Krishan <33421343+kfiven@users.noreply.github.com> Date: Wed, 23 Mar 2022 13:03:19 +0000 (+0530) Subject: Fix loading on older browsers (#424) X-Git-Tag: v2.0.0~88 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=fe997d8b01826b02b57604f8da3dd0086bb0eacf;p=cinny.git Fix loading on older browsers (#424) --- diff --git a/src/util/sort.js b/src/util/sort.js index 72ba3c4..f9a0b79 100644 --- a/src/util/sort.js +++ b/src/util/sort.js @@ -13,8 +13,8 @@ export function roomIdByAtoZ(aId, bId) { // remove "#" from the room name // To ignore it in sorting - aName = aName.replaceAll('#', ''); - bName = bName.replaceAll('#', ''); + aName = aName.replace(/#/g, ''); + bName = bName.replace(/#/g, ''); if (aName.toLowerCase() < bName.toLowerCase()) { return -1;