mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Notification menu broken on older browsers (#14019)
replaceAll is not available in all versions of Chrome/Firefox/Edge that we support, so we need to use replace instead
This commit is contained in:
@@ -33,7 +33,7 @@ export const DefaultNotificationItem = createWidget(
|
||||
const lookup = this.site.get("notificationLookup");
|
||||
const notificationName = lookup[notificationType];
|
||||
if (notificationName) {
|
||||
classNames.push(notificationName.replaceAll("_", "-"));
|
||||
classNames.push(notificationName.replace(/_/g, "-"));
|
||||
}
|
||||
return classNames;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user