diff --git a/play.pokemonshowdown.com/src/panel-mainmenu.tsx b/play.pokemonshowdown.com/src/panel-mainmenu.tsx index 53f242f91..637259f68 100644 --- a/play.pokemonshowdown.com/src/panel-mainmenu.tsx +++ b/play.pokemonshowdown.com/src/panel-mainmenu.tsx @@ -485,7 +485,7 @@ class NewsPanel extends PSRoomPanel { change = (ev: Event) => { const target = ev.currentTarget as HTMLInputElement; if (target.value === '1') { - document.cookie = "preactalpha=1; expires=Thu, 1 Jun 2026 12:00:00 UTC; path=/"; + document.cookie = "preactalpha=1; expires=Thu, 1 Jul 2026 12:00:00 UTC; path=/"; } else { document.cookie = "preactalpha=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"; } diff --git a/play.pokemonshowdown.com/src/panels.tsx b/play.pokemonshowdown.com/src/panels.tsx index dcc57ef35..6ca34a9c7 100644 --- a/play.pokemonshowdown.com/src/panels.tsx +++ b/play.pokemonshowdown.com/src/panels.tsx @@ -745,13 +745,11 @@ export class PSView extends preact.Component { elem.innerText = 'Copied!'; return true; case 'send': + PS.send(elem.value); + return true; case 'cmd': const room = PS.getRoom(elem) || PS.mainmenu; - if (elem.name === 'send') { - room.sendDirect(elem.value); - } else { - room.send(elem.value); - } + room.send(elem.value); return true; } return false;