mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-09 16:53:36 -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 {
|
||||
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;
|
||||
element.addEventListener(
|
||||
"click",
|
||||
|
|
Loading…
Reference in a new issue