mirror of
https://github.com/revoltchat/revite.git
synced 2025-01-12 15:31:26 -05:00
Handle subdomains on URLs
This commit is contained in:
parent
db43c02e01
commit
5c01944cfb
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 === location.hostname) {
|
||||
if (url.hostname.replace(/^[^.]+\./g, "") === location.hostname.replace(/^[^.]+\./g, "")) {
|
||||
internal = true;
|
||||
element.addEventListener(
|
||||
"click",
|
||||
|
|
Loading…
Reference in a new issue