Skip to content

Commit

Permalink
Rooms: Add copy button back to replay uploaded popup
Browse files Browse the repository at this point in the history
  • Loading branch information
mia-pi-git committed Dec 8, 2023
1 parent 7fb9049 commit 5e895a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/rooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2106,7 +2106,9 @@ export class GameRoom extends BasicRoom {
if (!silent) {
const url = `https://${Config.routes.replays}/${fullid}`;
connection?.popup(
`|html|<p>Your replay has been uploaded! It's available at:</p><p> <a class="no-panel-intercept" href="${url}" target="_blank">${url}</a>`
`|html|<p>Your replay has been uploaded! It's available at:</p><p> ` +
`<a class="no-panel-intercept" href="${url}" target="_blank">${url}</a> ` +
`<copytext value="${url}">Copy</copytext>`
);
}
} catch (e) {
Expand Down

0 comments on commit 5e895a3

Please sign in to comment.