Skip to content

Commit 75ea699

Browse files
fix: error message should not be localized in the player class (#7776)
1 parent 18bad57 commit 75ea699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/player.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3408,7 +3408,7 @@ class Player extends Component {
34083408
// show an error
34093409
if (!sources.length) {
34103410
this.setTimeout(function() {
3411-
this.error({ code: 4, message: this.localize(this.options_.notSupportedMessage) });
3411+
this.error({ code: 4, message: this.options_.notSupportedMessage });
34123412
}, 0);
34133413
return;
34143414
}
@@ -3447,7 +3447,7 @@ class Player extends Component {
34473447

34483448
// We need to wrap this in a timeout to give folks a chance to add error event handlers
34493449
this.setTimeout(function() {
3450-
this.error({ code: 4, message: this.localize(this.options_.notSupportedMessage) });
3450+
this.error({ code: 4, message: this.options_.notSupportedMessage });
34513451
}, 0);
34523452

34533453
// we could not find an appropriate tech, but let's still notify the delegate that this is it

0 commit comments

Comments
 (0)