Skip to content

Commit

Permalink
fix: open decoded links in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
m1m1s1ku committed May 20, 2023
1 parent 9b6027d commit c9f1215
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest-v2.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ThiWeb Crypt-Decrypt",
"version": "2.1.5",
"version": "2.1.6",
"manifest_version": 2,
"description": "Crypt / Auto-decrypt Links on ThiWeb",
"homepage_url": "https://www.thiweb.com",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ThiWeb Crypt-Decrypt",
"version": "2.1.5",
"version": "2.1.6",
"manifest_version": 3,
"description": "Crypt / Auto-decrypt Links on ThiWeb",
"homepage_url": "https://www.thiweb.com",
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": "thiweb-crypt-decrypt-ts",
"version": "2.1.5",
"version": "2.1.6",
"type": "module",
"scripts": {
"build": "tsc && vite build",
Expand Down
2 changes: 1 addition & 1 deletion src/inject/inject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export default class TWExtension {
}

for(const link of links) {
str = str.replace(link, "<a href=\"" + link + "\">" + link + "</a>");
str = str.replace(link, "<a target=\"_blank\" href=\"" + link + "\">" + link + "</a>");
}

this._insertUnsafeHTML(str, codeElement);
Expand Down

0 comments on commit c9f1215

Please sign in to comment.