Skip to content

Commit 2ac07cf

Browse files
committed
Strict comparison of iconType.
1 parent 1e6cc88 commit 2ac07cf

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

build/ableplayer.dist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ var AblePlayerInstances = [];
11631163
this.forceIconType = false;
11641164
if ($(media).data('icon-type') !== undefined && $(media).data('icon-type') !== "") {
11651165
var iconType = $(media).data('icon-type');
1166-
if (iconType === 'font' || iconType == 'image' || iconType == 'svg') {
1166+
if (iconType === 'font' || iconType === 'image' || iconType === 'svg') {
11671167
this.iconType = iconType;
11681168
this.forceIconType = true;
11691169
}

build/ableplayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1681,7 +1681,7 @@ var AblePlayerInstances = [];
16811681
this.forceIconType = false;
16821682
if ($(media).data('icon-type') !== undefined && $(media).data('icon-type') !== "") {
16831683
var iconType = $(media).data('icon-type');
1684-
if (iconType === 'font' || iconType == 'image' || iconType == 'svg') {
1684+
if (iconType === 'font' || iconType === 'image' || iconType === 'svg') {
16851685
this.iconType = iconType;
16861686
this.forceIconType = true;
16871687
}

build/ableplayer.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/separate-dompurify/ableplayer.dist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ var AblePlayerInstances = [];
326326
this.forceIconType = false;
327327
if ($(media).data('icon-type') !== undefined && $(media).data('icon-type') !== "") {
328328
var iconType = $(media).data('icon-type');
329-
if (iconType === 'font' || iconType == 'image' || iconType == 'svg') {
329+
if (iconType === 'font' || iconType === 'image' || iconType === 'svg') {
330330
this.iconType = iconType;
331331
this.forceIconType = true;
332332
}

build/separate-dompurify/ableplayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ var AblePlayerInstances = [];
326326
this.forceIconType = false;
327327
if ($(media).data('icon-type') !== undefined && $(media).data('icon-type') !== "") {
328328
var iconType = $(media).data('icon-type');
329-
if (iconType === 'font' || iconType == 'image' || iconType == 'svg') {
329+
if (iconType === 'font' || iconType === 'image' || iconType === 'svg') {
330330
this.iconType = iconType;
331331
this.forceIconType = true;
332332
}

build/separate-dompurify/ableplayer.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/ableplayer-base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ var AblePlayerInstances = [];
325325
this.forceIconType = false;
326326
if ($(media).data('icon-type') !== undefined && $(media).data('icon-type') !== "") {
327327
var iconType = $(media).data('icon-type');
328-
if (iconType === 'font' || iconType == 'image' || iconType == 'svg') {
328+
if (iconType === 'font' || iconType === 'image' || iconType === 'svg') {
329329
this.iconType = iconType;
330330
this.forceIconType = true;
331331
}

0 commit comments

Comments
 (0)