From fe997d8b01826b02b57604f8da3dd0086bb0eacf Mon Sep 17 00:00:00 2001 From: Krishan <33421343+kfiven@users.noreply.github.com> Date: Wed, 23 Mar 2022 18:33:19 +0530 Subject: [PATCH] Fix loading on older browsers (#424) --- src/util/sort.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;