aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/fullscreen.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-06-17 01:34:11 +1000
committerGitHub <noreply@github.com>2018-06-17 01:34:11 +1000
commit3c9c1b4cdcd0eb9076c3f0bafbabb057ee140c42 (patch)
tree90075d3343777a67dc78fcec4c295b140961788e /src/js/fullscreen.js
parentd4abb4b1438cb316aacae480e7b7e9b055a60b24 (diff)
parent599883e684cf72a631ea366d0cb821fcb1c3d013 (diff)
downloadplyr-3c9c1b4cdcd0eb9076c3f0bafbabb057ee140c42.tar.lz
plyr-3c9c1b4cdcd0eb9076c3f0bafbabb057ee140c42.tar.xz
plyr-3c9c1b4cdcd0eb9076c3f0bafbabb057ee140c42.zip
Merge pull request #1041 from sampotts/a11y-improvements
A11y improvements
Diffstat (limited to 'src/js/fullscreen.js')
-rw-r--r--src/js/fullscreen.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/fullscreen.js b/src/js/fullscreen.js
index ded581f9..7091fde1 100644
--- a/src/js/fullscreen.js
+++ b/src/js/fullscreen.js
@@ -4,7 +4,7 @@
// ==========================================================================
import browser from './utils/browser';
-import { hasClass, toggleClass, toggleState, trapFocus } from './utils/elements';
+import { hasClass, toggleClass, trapFocus } from './utils/elements';
import { on, triggerEvent } from './utils/events';
import is from './utils/is';
@@ -16,7 +16,7 @@ function onChange() {
// Update toggle button
const button = this.player.elements.buttons.fullscreen;
if (is.element(button)) {
- toggleState(button, this.active);
+ button.pressed = this.active;
}
// Trigger an event