mirror of
https://github.com/revoltchat/revite.git
synced 2025-01-12 23:41:25 -05:00
Update Renderer.tsx
This commit is contained in:
parent
5c01944cfb
commit
852cc22dc2
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ export default function Renderer({ content, disallowBigEmoji }: MarkdownProps) {
|
||||||
try {
|
try {
|
||||||
const url = new URL(href, location.href);
|
const url = new URL(href, location.href);
|
||||||
|
|
||||||
if (url.hostname.replace(/^[^.]+\./g, "") === location.hostname.replace(/^[^.]+\./g, "")) {
|
if (url.hostname.replace(/^[^.]+\./g, "") === location.hostname.replace(/^[^.]+\./g, "") && ["nightly.", "app.", "local."].includes(url.hostname.match(/^[^.]+\./g)?.[0] ?? "")) {
|
||||||
internal = true;
|
internal = true;
|
||||||
element.addEventListener(
|
element.addEventListener(
|
||||||
"click",
|
"click",
|
||||||
|
|
Loading…
Reference in a new issue