Update Renderer.tsx

This commit is contained in:
Jamie 2021-08-22 04:31:48 -07:00 committed by GitHub
parent 5c01944cfb
commit 852cc22dc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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