Skip to content

Commit b3af8e4

Browse files
authored
Merge pull request #3 from PenguinMod/new-api-integration
mmmmmmm
2 parents 7756ba0 + 70accbc commit b3af8e4

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
@@ -60,8 +60,8 @@ class ShareButton extends React.Component {
6060
this.handleMessageEvent(e);
6161
}
6262
async handleMessageEvent(e) {
63-
if (!e.origin.startsWith(`https://penguinmod-home-git-new-backend-live-penguinmod.vercel.app/`)) {
64-
return;
63+
if (!e.origin.startsWith(`https://penguinmod-home-git-new-backend-live-penguinmod.vercel.app`)) {
64+
//return; // BTODO: uncomment this line for prod (also change the link)
6565
}
6666

6767
if (!e.data.p4) {
@@ -148,7 +148,7 @@ class ShareButton extends React.Component {
148148
}
149149

150150
const url = location.origin;
151-
window.open(`https://penguinmod-home-git-new-backend-live-penguinmod.vercel.app//${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)