Removed unnecessary ES6 polyfill

Replaces use of Array.includes() with Array.indexOf
This commit is contained in:
amarcu5
2019-02-12 13:27:10 +00:00
parent 5ffd3fd140
commit 0814ceacd6
5 changed files with 3 additions and 2 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2 -1
View File
@@ -43,7 +43,8 @@ export const togglePictureInPicture = function(video) {
* @param {function(HTMLVideoElement, boolean)} listener - an event listener to add
*/
export const addPictureInPictureEventListener = function(listener) {
if (!eventListeners.includes(listener)) {
const index = eventListeners.indexOf(listener);
if (index == -1) {
eventListeners.push(listener);
}
+1 -1
View File
@@ -10,7 +10,7 @@
<key>CFBundleShortVersionString</key>
<string>1.0.2</string>
<key>CFBundleVersion</key>
<string>199</string>
<string>200</string>
<key>Developer Identifier</key>
<string>BQ6Q24MF9X</string>
<key>URL</key>