Bug fix for isFullscreen() in Mozilla (Fixes #38)

This commit is contained in:
Sam Potts
2015-04-10 07:16:53 +10:00
parent 3526e322ef
commit 5187311ff0
7 changed files with 20 additions and 15 deletions

View File

@ -1,6 +1,6 @@
// ==========================================================================
// Plyr
// plyr.js v1.1.2
// plyr.js v1.1.5
// https://github.com/selz/plyr
// License: The MIT License (MIT)
// ==========================================================================
@ -541,6 +541,8 @@
switch (this.prefix) {
case "":
return document.fullscreenElement == element;
case "moz":
return document.mozFullScreenElement == element;
default:
return document[this.prefix + "FullscreenElement"] == element;
}