mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-09 00:33:38 -05:00
Use rvlt.gg instead of app.revolt.chat/invite for invites (#783)
This commit is contained in:
parent
b64c316dc9
commit
b649b2a923
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ import { noopAsync } from "../../../lib/js";
|
|||
import { takeError } from "../../client/jsx/error";
|
||||
import { modalController } from "../ModalController";
|
||||
import { ModalProps } from "../types";
|
||||
import { IS_REVOLT } from "../../../version";
|
||||
|
||||
/**
|
||||
* Code block which displays invite
|
||||
|
@ -78,7 +79,7 @@ export default function CreateInvite({
|
|||
children: <Text id="app.context_menu.copy_link" />,
|
||||
onClick: () =>
|
||||
modalController.writeText(
|
||||
`${window.location.protocol}//${window.location.host}/invite/${code}`,
|
||||
IS_REVOLT ? `https://rvlt.gg/${code}` : `${window.location.host}/invite/${code}`
|
||||
),
|
||||
},
|
||||
]}
|
||||
|
|
Loading…
Reference in a new issue