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