Add failsafe for VOLUME=NaN

This commit is contained in:
Calvin Montgomery 2014-05-20 21:10:08 -07:00
parent 5f0d2db1be
commit 8b9242fc7b
1 changed files with 5 additions and 0 deletions

View File

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