From cbf9ae5dd5a29ec07ce17284bfea3e8a3413142a Mon Sep 17 00:00:00 2001 From: gemstone Date: Mon, 26 Aug 2024 17:26:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20(xgplayer)=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=85=A8=E5=B1=8Fhook=EF=BC=8C=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98=20close#1579?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/xgplayer/src/plugins/fullscreen/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xgplayer/src/plugins/fullscreen/index.js b/packages/xgplayer/src/plugins/fullscreen/index.js index 04ddaddd9..f29cec573 100644 --- a/packages/xgplayer/src/plugins/fullscreen/index.js +++ b/packages/xgplayer/src/plugins/fullscreen/index.js @@ -137,7 +137,7 @@ export default class Fullscreen extends IconPlugin { * @param { Event } [e] */ toggleFullScreen (e) { - if (e) { + if (e instanceof Event) { e.preventDefault() e.stopPropagation() }