Skip to content

Commit

Permalink
IE11 fix due to unsupported - JS template literals
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewiscowles1986 committed Nov 9, 2019
1 parent 9926125 commit 3ff8e31
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
* Plugin Name: Media Playback Speed
* Description: Appends playback buttons to the Audio Player, Video Player & PLaylist shortcodes. Based on original by Daron Spence.
* Author: LewisCowles
* Version: 1.1.2
* Version: 1.1.3
*/

add_action( 'wp_enqueue_scripts', function() {
wp_enqueue_script(
'cd2-media-playback-speed-js',
plugins_url( 'playback-speed.js', __FILE__ ),
[],
'1.1.2',
'1.1.3',
true
);
}, 1, 100);
Expand Down
3 changes: 2 additions & 1 deletion playback-speed.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
if(!e.target || !e.target.classList.contains('playback-rate-button')) { return; }

// We set aria attributes informing which DOMElement to control
var mediaTag = document.querySelector(`#${e.target.getAttribute('aria-controls')}`),
var targetId = e.target.getAttribute('aria-controls')
mediaTag = document.getElementById(targetId),
rate = e.target.dataset.value;

// Guard against failing matchers. The DOM must be fulfilled, but this also means this part maybe doesn't need media-element-js
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: frontend,media,streaming,aria,mediaelementjs,html5,video,audio,playback,sp
Requires at least: 4.0
Tested up to: 5.2.4
Requires PHP: 5.6
Stable tag: 1.1.2
Stable tag: 1.1.3
License: GPL-3.0
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -51,6 +51,9 @@ Please feel free to [suggest](https://github.com/CODESIGN2/media-playback-speed/
Download and extract the zip file or clone this repo to your WordPress plugins directory. Alternatively use the plugin directory to find and install this plugin.

== Changelog ==
= 1.1.3 =
* IE 11 fixes.

= 1.1.2 =
* Re-factor inline JS that does not require PHP to it's own JS file

Expand Down

0 comments on commit 3ff8e31

Please sign in to comment.