]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/twitch-bot/Controls.js
set channel on GG controls open
[alttp.git] / resources / js / components / twitch-bot / Controls.js
index 54f4decd1722f0bcb6488e7f3bb68e05cf1da8e1..3093d90c04dd34e8b4f050367efa4c5c16f219b6 100644 (file)
@@ -235,11 +235,8 @@ const Controls = () => {
                                                <div className="button-bar">
                                                        {channel.access_key ?
                                                                <Button
-                                                                       onClick={() => {
-                                                                               window.open(
-                                                                                       `/guessing-game/monitor/${channel.access_key}`,
-                                                                               );
-                                                                       }}
+                                                                       href={`/guessing-game/monitor/${channel.access_key}`}
+                                                                       target="_blank"
                                                                        title={t('button.browserSource')}
                                                                        variant="outline-secondary"
                                                                >
@@ -249,7 +246,7 @@ const Controls = () => {
                                                        <Button
                                                                onClick={() => {
                                                                        window.open(
-                                                                               '/guessing-game/controls',
+                                                                               `/guessing-game/controls/${channel.id}`,
                                                                                '',
                                                                                'width=640,height=800,titlebar=0,menubar=0,toolbar=0',
                                                                        );