Add failsafe for VOLUME=NaN
This commit is contained in:
parent
5f0d2db1be
commit
8b9242fc7b
|
@ -811,6 +811,11 @@ Callbacks = {
|
|||
return;
|
||||
}
|
||||
|
||||
/* Failsafe */
|
||||
if (isNaN(VOLUME)) {
|
||||
VOLUME = 1;
|
||||
}
|
||||
|
||||
var shouldResize = $("#ytapiplayer").html() === "";
|
||||
|
||||
if (PLAYER && typeof PLAYER.getVolume === "function") {
|
||||
|
|
Loading…
Reference in a new issue