diff --git a/src/components/menu-bar/share-button.jsx b/src/components/menu-bar/share-button.jsx index 5bf6771a23b..41cbda0db7e 100644 --- a/src/components/menu-bar/share-button.jsx +++ b/src/components/menu-bar/share-button.jsx @@ -28,7 +28,7 @@ const getProjectUri = () => new Promise(resolve => { const isUploadAvailable = async () => { let res = null; try { - res = await fetch('http://localhost:8080/api/v1/projects/canuploadprojects').then(res => res.json()); + res = await fetch('https://projects.penguinmod.com/api/v1/projects/canuploadprojects').then(res => res.json()); } catch { // failed to fetch entirely return false; @@ -60,7 +60,7 @@ class ShareButton extends React.Component { this.handleMessageEvent(e); } async handleMessageEvent(e) { - if (!e.origin.startsWith(`http://localhost:5173`)) { + if (!e.origin.startsWith(`https://penguinmod-home-git-new-backend-live-penguinmod.vercel.app`)) { return; } @@ -148,7 +148,7 @@ class ShareButton extends React.Component { } const url = location.origin; - window.open(`http://localhost:5173/${targetPage}?name=${this.props.projectTitle}${editPiece}${remixPiece}&external=${url}`, '_blank'); + window.open(`https://penguinmod-home-git-new-backend-live-penguinmod.vercel.app/${targetPage}?name=${this.props.projectTitle}${editPiece}${remixPiece}&external=${url}`, '_blank'); }); } render() {