Format
This commit is contained in:
parent
6903784136
commit
4e4ae150a2
|
@ -148,7 +148,11 @@ class GameServer {
|
|||
if (this.takebackRequesterId) {
|
||||
if (this.takebackRequesterId === conn.id) {
|
||||
buttons.push(
|
||||
<button id="cancel-takeback-request-button" class="decline-button" ws-send="click">
|
||||
<button
|
||||
id="cancel-takeback-request-button"
|
||||
class="decline-button"
|
||||
ws-send="click"
|
||||
>
|
||||
<svg class="icon" alt="Cancel">
|
||||
<use href="/icons/decline.svg"></use>
|
||||
</svg>
|
||||
|
@ -157,7 +161,11 @@ class GameServer {
|
|||
);
|
||||
} else {
|
||||
buttons.push(
|
||||
<button id="accept-takeback-button" class="accept-button" ws-send="click">
|
||||
<button
|
||||
id="accept-takeback-button"
|
||||
class="accept-button"
|
||||
ws-send="click"
|
||||
>
|
||||
<svg class="icon" alt="Accept">
|
||||
<use href="/icons/accept.svg"></use>
|
||||
</svg>
|
||||
|
@ -165,7 +173,11 @@ class GameServer {
|
|||
</button>,
|
||||
);
|
||||
buttons.push(
|
||||
<button id="decline-takeback-button" class="decline-button" ws-send="click">
|
||||
<button
|
||||
id="decline-takeback-button"
|
||||
class="decline-button"
|
||||
ws-send="click"
|
||||
>
|
||||
<svg class="icon" alt="Decline">
|
||||
<use href="/icons/decline.svg"></use>
|
||||
</svg>
|
||||
|
@ -176,7 +188,11 @@ class GameServer {
|
|||
} else if (this.drawRequesterId) {
|
||||
if (this.drawRequesterId === conn.id) {
|
||||
buttons.push(
|
||||
<button id="cancel-draw-request-button" class="decline-button" ws-send="click">
|
||||
<button
|
||||
id="cancel-draw-request-button"
|
||||
class="decline-button"
|
||||
ws-send="click"
|
||||
>
|
||||
<svg class="icon" alt="Cancel">
|
||||
<use href="/icons/decline.svg"></use>
|
||||
</svg>
|
||||
|
@ -185,7 +201,11 @@ class GameServer {
|
|||
);
|
||||
} else {
|
||||
buttons.push(
|
||||
<button id="accept-draw-button" class="accept-button" ws-send="click">
|
||||
<button
|
||||
id="accept-draw-button"
|
||||
class="accept-button"
|
||||
ws-send="click"
|
||||
>
|
||||
<svg class="icon" alt="Accept">
|
||||
<use href="/icons/accept.svg"></use>
|
||||
</svg>
|
||||
|
@ -193,7 +213,11 @@ class GameServer {
|
|||
</button>,
|
||||
);
|
||||
buttons.push(
|
||||
<button id="decline-draw-button" class="decline-button" ws-send="click">
|
||||
<button
|
||||
id="decline-draw-button"
|
||||
class="decline-button"
|
||||
ws-send="click"
|
||||
>
|
||||
<svg class="icon" alt="Decline">
|
||||
<use href="/icons/decline.svg"></use>
|
||||
</svg>
|
||||
|
@ -231,7 +255,11 @@ class GameServer {
|
|||
if (this.rematchRequesterId) {
|
||||
if (this.rematchRequesterId === conn.id) {
|
||||
buttons.push(
|
||||
<button id="cancel-rematch-request-button" class="decline-button" ws-send="click">
|
||||
<button
|
||||
id="cancel-rematch-request-button"
|
||||
class="decline-button"
|
||||
ws-send="click"
|
||||
>
|
||||
<svg class="icon" alt="Cancel">
|
||||
<use href="/icons/decline.svg"></use>
|
||||
</svg>
|
||||
|
@ -240,7 +268,11 @@ class GameServer {
|
|||
);
|
||||
} else {
|
||||
buttons.push(
|
||||
<button id="accept-rematch-button" class="accept-button" ws-send="click">
|
||||
<button
|
||||
id="accept-rematch-button"
|
||||
class="accept-button"
|
||||
ws-send="click"
|
||||
>
|
||||
<svg class="icon" alt="Accept">
|
||||
<use href="/icons/accept.svg"></use>
|
||||
</svg>
|
||||
|
@ -248,7 +280,11 @@ class GameServer {
|
|||
</button>,
|
||||
);
|
||||
buttons.push(
|
||||
<button id="decline-rematch-button" class="decline-button" ws-send="click">
|
||||
<button
|
||||
id="decline-rematch-button"
|
||||
class="decline-button"
|
||||
ws-send="click"
|
||||
>
|
||||
<svg class="icon" alt="Decline">
|
||||
<use href="/icons/decline.svg"></use>
|
||||
</svg>
|
||||
|
|
Loading…
Reference in New Issue