Update Renderer.tsx

pull/1049/head
Jamie 2021-08-22 04:31:48 -07:00 committed by GitHub
parent 7d937af8fc
commit 73c386f1d0
1 changed files with 1 additions and 1 deletions

View File

@ -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",