Add failsafe for VOLUME=NaN

This commit is contained in:
Calvin Montgomery 2014-05-20 21:10:08 -07:00
parent 5f0d2db1be
commit 8b9242fc7b

View file

@ -811,6 +811,11 @@ Callbacks = {
return;
}
/* Failsafe */
if (isNaN(VOLUME)) {
VOLUME = 1;
}
var shouldResize = $("#ytapiplayer").html() === "";
if (PLAYER && typeof PLAYER.getVolume === "function") {