Skip to content

Commit 2cee7c7

Browse files
committed
Incorrect preferences image property
1 parent 6640b1d commit 2cee7c7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎scripts/control.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@
15641564
this.refreshControls('transcript');
15651565
};
15661566

1567-
AblePlayer.prototype.getIcon = function( $button, id, forceImg ) {
1567+
AblePlayer.prototype.getIcon = function( $button, id, forceImg = false ) {
15681568
// Remove existing HTML before generating.
15691569
$button.find('svg, img, span:not(.able-clipped)').remove();
15701570
// iconData: [0 = svg viewbox, 1 = svg path, 2 = icon font class, 3 = image file]
@@ -1573,7 +1573,7 @@
15731573
if ( null === iconData[3] ) {
15741574
iconType = 'svg';
15751575
}
1576-
if ( forceImg ) {
1576+
if ( forceImg === true ) {
15771577
iconType = 'image';
15781578
}
15791579
if (iconType === 'font') {

‎scripts/initialize.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@
294294
svg[0] = '0 0 20 20';
295295
svg[1] = 'M18.238 11.919c-1.049-1.817-0.418-4.147 1.409-5.205l-1.965-3.404c-0.562 0.329-1.214 0.518-1.911 0.518-2.1 0-3.803-1.714-3.803-3.828h-3.931c0.005 0.653-0.158 1.314-0.507 1.919-1.049 1.818-3.382 2.436-5.212 1.382l-1.965 3.404c0.566 0.322 1.056 0.793 1.404 1.396 1.048 1.815 0.42 4.139-1.401 5.2l1.965 3.404c0.56-0.326 1.209-0.513 1.902-0.513 2.094 0 3.792 1.703 3.803 3.808h3.931c-0.002-0.646 0.162-1.3 0.507-1.899 1.048-1.815 3.375-2.433 5.203-1.387l1.965-3.404c-0.562-0.322-1.049-0.791-1.395-1.391zM10 14.049c-2.236 0-4.050-1.813-4.050-4.049s1.813-4.049 4.050-4.049 4.049 1.813 4.049 4.049c-0 2.237-1.813 4.049-4.049 4.049z';
296296
svg[2] = 'icon-preferences';
297-
svg[3] = this.preferencesButtonImg;
297+
svg[3] = this.prefsButtonImg;
298298
break;
299299

300300
case 'close':

0 commit comments

Comments
 (0)