Skip to content

Commit

Permalink
Fix share url not including pathname
Browse files Browse the repository at this point in the history
  • Loading branch information
kenrick95 committed Apr 12, 2020
1 parent 5230051 commit f4db867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/src/game/game-online-2p.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class GameOnline2p extends GameBase {
case MESSAGE_TYPE.NEW_MATCH_OK:
{
this.connectionMatchId = payload.matchId
const shareUrl = `${location.origin}/?matchId=${this.connectionMatchId}`
const shareUrl = `${location.href}?matchId=${this.connectionMatchId}`
console.log('[url] Share this', shareUrl)
showMessage(
`<h1>Share this URL</h1>` +
Expand Down

0 comments on commit f4db867

Please sign in to comment.