mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
Update Renderer.tsx
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user