Remove literals (#1114)

https://tldraw.com -> window.location.origin
This commit is contained in:
Jang Min 2023-02-03 01:11:39 +09:00 committed by GitHub
parent 34d06b17b3
commit e02a5cb62e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ interface RoomProps {
export default function Room({ id }: RoomProps) {
if (typeof window !== 'undefined' && window.self !== window.top) {
return <IFrameWarning url={`https://tldraw.com/r/${id}`} />
return <IFrameWarning url={`${window.location.origin}/r/${id}`} />
}
return (

View file

@ -130,7 +130,7 @@ export const MultiplayerMenu = function MultiplayerMenu() {
id="TD-Multiplayer-CreateMultiplayerProject"
onClick={handleCreateMultiplayerProject}
>
<a href="https://tldraw.com/r">
<a href={`${window.location.origin}/r`}>
<FormattedMessage id="create.multiplayer.project" />
</a>
</DMItem>