Skip to content

Commit 9e98d9a

Browse files
committed
i wuv hardcoded urls
1 parent 98b8d37 commit 9e98d9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/menu-bar/share-button.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const getProjectUri = () => new Promise(resolve => {
2828
const isUploadAvailable = async () => {
2929
let res = null;
3030
try {
31-
res = await fetch('http://localhost:8080/api/v1/projects/canuploadprojects').then(res => res.json());
31+
res = await fetch('https://projects.penguinmod.com/api/v1/projects/canuploadprojects').then(res => res.json());
3232
} catch {
3333
// failed to fetch entirely
3434
return false;
@@ -60,7 +60,7 @@ class ShareButton extends React.Component {
6060
this.handleMessageEvent(e);
6161
}
6262
async handleMessageEvent(e) {
63-
if (!e.origin.startsWith(`http://localhost:5173`)) {
63+
if (!e.origin.startsWith(`https://penguinmod-home-git-new-backend-live-penguinmod.vercel.app`)) {
6464
return;
6565
}
6666

@@ -148,7 +148,7 @@ class ShareButton extends React.Component {
148148
}
149149

150150
const url = location.origin;
151-
window.open(`http://localhost:5173/${targetPage}?name=${this.props.projectTitle}${editPiece}${remixPiece}&external=${url}`, '_blank');
151+
window.open(`https://penguinmod-home-git-new-backend-live-penguinmod.vercel.app/${targetPage}?name=${this.props.projectTitle}${editPiece}${remixPiece}&external=${url}`, '_blank');
152152
});
153153
}
154154
render() {

0 commit comments

Comments
 (0)