sindresorhus / screenfull

Simple wrapper for cross-browser usage of the JavaScript Fullscreen API
https://sindresorhus.com/screenfull
MIT License
7.08k stars 698 forks source link

Chrome71版本使用screenfull.js全屏功能时报参数错误 #180

Closed kkgo2018 closed 4 years ago

kkgo2018 commented 4 years ago

Chrome71版本使用screenfull.js全屏功能时报参数错误Failed to execute 'requestFullscreen' on 'Element': parameter 1 ('options') is not an object

kkgo2018 commented 4 years ago

if (/ Version\/5.1(?:.\d+)? Safari\//.test(navigator.userAgent)) { elem[request](); } else { if (keyboardAllowed) { elemrequest; } else { elem[request]({ navigationUI: "auto" }); } // elem[request](keyboardAllowed && Element.ALLOW_KEYBOARD_INPUT); }

sindresorhus commented 4 years ago

You're not using the latest Screenfull version.