From b985651e33533e65eeaf29d4d0e27aea0c148216 Mon Sep 17 00:00:00 2001 From: Baltazar Gomez Date: Sun, 13 Oct 2019 18:04:58 -0600 Subject: [PATCH] fix fullscreen polyfill util --- src/ui/util/full-screen.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/util/full-screen.js b/src/ui/util/full-screen.js index 91d3af3dd..6a3b95750 100644 --- a/src/ui/util/full-screen.js +++ b/src/ui/util/full-screen.js @@ -42,8 +42,8 @@ export const exitFullscreen = () => { document[prefix] && document[prefix](); }; -export const onFullscreenChange = (event, callback) => { +export const onFullscreenChange = (target, action, callback) => { const index = getPrefix(); const prefix = prefixes.fullscreenChange[index]; - document[`${event}EventListener`](prefix, callback, false); + target[`${action}EventListener`](prefix, callback, false); };