Skip to content

Commit

Permalink
Obfuscate notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebelung-Dev committed Apr 22, 2023
1 parent 3caef02 commit 5926948
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
- [x] Make notifications change rounding
- [x] Fix hub notification not showing up
- [x] Fix 3kh0 theme placeholder
- [x] Obfuscate notifications

### Roadmap
The roadmap has moved [here](https://github.com/orgs/Metallic-Web/projects/1/views/1).
3 changes: 2 additions & 1 deletion src/components/notifications.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from "react";
import Obfuscate from "./obfuscate.jsx";

class NotificationBuilder {
removeNotification(element) {
Expand All @@ -23,7 +24,7 @@ class NotificationBuilder {

var notificationText = document.createElement("div")
notificationText.className = "notification-text"
notificationText.innerText = config.text
notificationText.innerText = <Obfuscate>config.text</Obfuscate>

notification.appendChild(notificationText)

Expand Down

0 comments on commit 5926948

Please sign in to comment.