Skip to content

Commit 5926948

Browse files
committed
Obfuscate notifications
1 parent 3caef02 commit 5926948

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
- [x] Make notifications change rounding
8484
- [x] Fix hub notification not showing up
8585
- [x] Fix 3kh0 theme placeholder
86+
- [x] Obfuscate notifications
8687

8788
### Roadmap
8889
The roadmap has moved [here](https://github.com/orgs/Metallic-Web/projects/1/views/1).

src/components/notifications.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from "react";
2+
import Obfuscate from "./obfuscate.jsx";
23

34
class NotificationBuilder {
45
removeNotification(element) {
@@ -23,7 +24,7 @@ class NotificationBuilder {
2324

2425
var notificationText = document.createElement("div")
2526
notificationText.className = "notification-text"
26-
notificationText.innerText = config.text
27+
notificationText.innerText = <Obfuscate>config.text</Obfuscate>
2728

2829
notification.appendChild(notificationText)
2930

0 commit comments

Comments
 (0)