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:
parent
20a6bad87e
commit
814aa64a5d
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue