Skip to content

Commit

Permalink
Fix issue with Chrome 67+ (sindresorhus#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
dheerajkumarmadaan authored and sindresorhus committed Sep 4, 2018
1 parent e8da08b commit 04f9ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screenfull.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
if (/ Version\/5\.1(?:\.\d+)? Safari\//.test(navigator.userAgent)) {
elem[request]();
} else {
elem[request](keyboardAllowed && Element.ALLOW_KEYBOARD_INPUT);
elem[request](keyboardAllowed ? Element.ALLOW_KEYBOARD_INPUT : {});
}
},
exit: function () {
Expand Down

0 comments on commit 04f9ec4

Please sign in to comment.