From 7d4d2afdae01ff7e29ab59b737a98619fdc60952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KMY=EF=BC=88=E9=9B=AA=E3=81=82=E3=81=99=E3=81=8B=EF=BC=89?= Date: Sat, 4 Nov 2023 22:21:15 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20#202=20=E7=94=BB=E5=83=8F=E6=8B=A1?= =?UTF-8?q?=E5=A4=A7=E8=A1=A8=E7=A4=BA=E3=81=97=E3=81=9F=E3=81=A8=E3=81=8D?= =?UTF-8?q?=E3=81=AE=E5=8F=B3=E4=B8=8B=E3=81=AE=E3=83=9C=E3=82=BF=E3=83=B3?= =?UTF-8?q?=E3=81=8C=E6=A9=9F=E8=83=BD=E3=81=97=E3=81=AA=E3=81=84=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=EF=BC=88=E6=9C=AC=E5=AE=B6=E7=94=B1=E6=9D=A5=EF=BC=89?= =?UTF-8?q?=20(#234)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../features/picture_in_picture/components/footer.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/features/picture_in_picture/components/footer.jsx b/app/javascript/mastodon/features/picture_in_picture/components/footer.jsx index 948a5c32ff..e6e72383a6 100644 --- a/app/javascript/mastodon/features/picture_in_picture/components/footer.jsx +++ b/app/javascript/mastodon/features/picture_in_picture/components/footer.jsx @@ -156,12 +156,12 @@ class Footer extends ImmutablePureComponent { }; handleOpenClick = e => { + const { status, onClose, history } = this.props; + if (e.button !== 0 || !history) { return; } - const { status, onClose } = this.props; - if (onClose) { onClose(); }