aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/fullscreen.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-06-27 21:59:35 +1000
committerSam Potts <sam@potts.es>2020-11-14 13:01:36 +1100
commitc3e163741fd5a4a88e56c9d425109f2014c8511f (patch)
treec1651e8b90d096a6000595d03d533a6e15ac0a0e /src/js/fullscreen.js
parent1c715bc88922e20360c7ad2d5b625cccb16247fa (diff)
downloadplyr-c3e163741fd5a4a88e56c9d425109f2014c8511f.tar.lz
plyr-c3e163741fd5a4a88e56c9d425109f2014c8511f.tar.xz
plyr-c3e163741fd5a4a88e56c9d425109f2014c8511f.zip
Linting changes
Diffstat (limited to 'src/js/fullscreen.js')
-rw-r--r--src/js/fullscreen.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/js/fullscreen.js b/src/js/fullscreen.js
index 5029e7de..d545d144 100644
--- a/src/js/fullscreen.js
+++ b/src/js/fullscreen.js
@@ -5,7 +5,7 @@
// ==========================================================================
import browser from './utils/browser';
-import { closest,getElements, hasClass, toggleClass } from './utils/elements';
+import { closest, getElements, hasClass, toggleClass } from './utils/elements';
import { on, triggerEvent } from './utils/events';
import is from './utils/is';
import { silencePromise } from './utils/promise';
@@ -43,7 +43,7 @@ class Fullscreen {
);
// Fullscreen toggle on double click
- on.call(this.player, this.player.elements.container, 'dblclick', event => {
+ on.call(this.player, this.player.elements.container, 'dblclick', (event) => {
// Ignore double click in controls
if (is.element(this.player.elements.controls) && this.player.elements.controls.contains(event.target)) {
return;
@@ -53,7 +53,7 @@ class Fullscreen {
});
// Tap focus when in fullscreen
- on.call(this, this.player.elements.container, 'keydown', event => this.trapFocus(event));
+ on.call(this, this.player.elements.container, 'keydown', (event) => this.trapFocus(event));
// Update the UI
this.update();
@@ -85,7 +85,7 @@ class Fullscreen {
let value = '';
const prefixes = ['webkit', 'moz', 'ms'];
- prefixes.some(pre => {
+ prefixes.some((pre) => {
if (is.function(document[`${pre}ExitFullscreen`]) || is.function(document[`${pre}CancelFullScreen`])) {
value = pre;
return true;
@@ -189,7 +189,7 @@ class Fullscreen {
} else if (this.cleanupViewport) {
viewport.content = viewport.content
.split(',')
- .filter(part => part.trim() !== property)
+ .filter((part) => part.trim() !== property)
.join(',');
}
}