Skip to content

Commit

Permalink
Let's try again.
Browse files Browse the repository at this point in the history
  • Loading branch information
someCatInTheWorld committed Aug 2, 2024
1 parent 9785c8f commit 294b8f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/menu-bar/menu-bar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -896,11 +896,11 @@ class MenuBar extends React.Component {
<TWSaveStatus />
</div>

{/* <a href={this.props.username ? `https://www.snail-ide.com/profile?user=${this.props.username}` : `https://www.snail-ide.com/sign-in`}>
<a href={this.props.username ? `https://www.snail-ide.com/profile?user=${this.props.username}` : `https://www.snail-ide.com/sign-in`}>
<div className={classNames(styles.menuBarItem, styles.hoverable)}>
{this.props.username ? this.props.username : 'Sign in/Join'}
</div>
</a> */}
</a>
</div>

{aboutButton}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/gui.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class GUI extends React.Component {
loginData: {}
}
window.addEventListener('message', (event) => {
if (event.origin !== 'http://localhost:5173') return;
if (event.origin !== 'https://www.snail-ide.com') return;
this.setState({ loginData: event.data });
console.log(event.data);
}
Expand Down
4 changes: 2 additions & 2 deletions src/playground/render-interface.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class Interface extends React.Component {
loginData: {}
}
window.addEventListener('message', (event) => {
if (event.origin !== 'http://localhost:5173') return;
if (event.origin !== 'https://www.snail-ide.com') return;
this.setState({ loginData: event.data });
console.log(event.data);
}
Expand Down Expand Up @@ -301,7 +301,7 @@ class Interface extends React.Component {
<iframe
id='login'
style={{ display: 'none' }}
src={`http://localhost:5173/embed/editor?external=${window.location}`}
src={`https://www.snail-ide.com/embed/editor?external=${window.location}`}
></iframe>
{isHomepage ? (
<div className={styles.menu}>
Expand Down

0 comments on commit 294b8f5

Please sign in to comment.