Force string on format
This commit is contained in:
parent
aae1092bac
commit
0ecf7e3854
2
dist/plyr.js
vendored
2
dist/plyr.js
vendored
@ -972,7 +972,7 @@ function format(input) {
|
||||
}
|
||||
|
||||
return input.toString().replace(/{(\d+)}/g, function (match, i) {
|
||||
return is.string(args[i]) ? args[i] : '';
|
||||
return args[i].toString();
|
||||
});
|
||||
}
|
||||
|
||||
|
2
dist/plyr.js.map
vendored
2
dist/plyr.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.min.js
vendored
2
dist/plyr.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.min.js.map
vendored
2
dist/plyr.min.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/plyr.polyfilled.js
vendored
4
dist/plyr.polyfilled.js
vendored
@ -6361,7 +6361,7 @@ function format(input) {
|
||||
}
|
||||
|
||||
return input.toString().replace(/{(\d+)}/g, function (match, i) {
|
||||
return is$1.string(args[i]) ? args[i] : '';
|
||||
return args[i].toString();
|
||||
});
|
||||
}
|
||||
|
||||
@ -9724,7 +9724,7 @@ var Listeners = function () {
|
||||
|
||||
// Check for audio tracks on load
|
||||
// We can't use `loadedmetadata` as it doesn't seem to have audio tracks at that point
|
||||
on.call(this.player, this.player.media, 'loadeddata', function () {
|
||||
on.call(this.player, this.player.media, 'canplay', function () {
|
||||
toggleHidden(_this3.player.elements.volume, !_this3.player.hasAudio);
|
||||
toggleHidden(_this3.player.elements.buttons.mute, !_this3.player.hasAudio);
|
||||
});
|
||||
|
2
dist/plyr.polyfilled.js.map
vendored
2
dist/plyr.polyfilled.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.polyfilled.min.js
vendored
2
dist/plyr.polyfilled.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.polyfilled.min.js.map
vendored
2
dist/plyr.polyfilled.min.js.map
vendored
File diff suppressed because one or more lines are too long
@ -15,7 +15,7 @@ export function format(input, ...args) {
|
||||
return input;
|
||||
}
|
||||
|
||||
return input.toString().replace(/{(\d+)}/g, (match, i) => (is.string(args[i]) ? args[i] : ''));
|
||||
return input.toString().replace(/{(\d+)}/g, (match, i) => args[i].toString());
|
||||
}
|
||||
|
||||
// Get percentage
|
||||
|
Loading…
x
Reference in New Issue
Block a user