Skip to content

Commit

Permalink
fix: 🐛 (xgplayer) 修复全屏hook,执行报错的问题 close#1579
Browse files Browse the repository at this point in the history
  • Loading branch information
gemxx committed Aug 26, 2024
1 parent f25bf53 commit cbf9ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xgplayer/src/plugins/fullscreen/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit cbf9ae5

Please sign in to comment.