Skip to content

Commit

Permalink
fix encryption indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
SammCheese committed Jun 27, 2023
1 parent 14cfad1 commit 98985bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"discordID": "372148345894076416",
"github": "SammCheese"
},
"version": "1.2.8",
"version": "1.2.9",
"updater": {
"type": "store",
"id": "dev.sammcheese.InvisibleChat"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "invisible-chat",
"version": "1.2.8",
"version": "1.2.9",
"description": "Encrypt your Discord Messages",
"engines": {
"node": ">=14.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/plaintextPatches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const patches: types.PlaintextPatch[] = [
// Message Indicator
match: /var .,.,.=(.)\.className,.=.\.message,.=.\.children,.=.\.content,.=.\.onUpdate/,
replace:
"try{$1?.content[0].match(window.invisiblechat?.INV_DETECTION)?$1?.content.push(window.invisiblechat?.Indicator):null}catch(e){};$&",
"try{$1?.message?.content.match(window.invisiblechat?.INV_DETECTION)?$1?.content.push(window.invisiblechat?.Indicator):null}catch(e){};$&",
},
],
},
Expand Down

0 comments on commit 98985bf

Please sign in to comment.