mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-09 04:06:27 -04:00
Fix detection of IE11 and Edge legacy
This commit is contained in:
parent
e750fbeec7
commit
b553fb352f
@ -1066,7 +1066,7 @@ define(rqDef, function(util) {
|
||||
// return Promise.resolve(rtn);
|
||||
}
|
||||
} else {
|
||||
if (document.documentElement.webkitRequestFullscreen || document.documentElement.msRequestFullscreen) {
|
||||
if (!document.documentElement.requestFullscreen && (document.documentElement.webkitRequestFullscreen || document.documentElement.msRequestFullscreen)) {
|
||||
// We are in a Safari browser or IE11, and a click is required to enter full-screen mode
|
||||
return 'click';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user