Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kkgo2018 opened this issue Jul 25, 2020 · 2 comments
Closed

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

kkgo2018 opened this issue Jul 25, 2020 · 2 comments

Comments

@kkgo2018
Copy link

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

@kkgo2018
Copy link
Author

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

@sindresorhus
Copy link
Owner

You're not using the latest Screenfull version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants