Skip to content

Commit

Permalink
i wuv hardcoded urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Ianyourgod committed Jun 22, 2024
1 parent 98b8d37 commit 9e98d9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/menu-bar/share-button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 9e98d9a

Please sign in to comment.