mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
Add failsafe for VOLUME=NaN
This commit is contained in:
parent
5f0d2db1be
commit
8b9242fc7b
1 changed files with 5 additions and 0 deletions
|
|
@ -811,6 +811,11 @@ Callbacks = {
|
|||
return;
|
||||
}
|
||||
|
||||
/* Failsafe */
|
||||
if (isNaN(VOLUME)) {
|
||||
VOLUME = 1;
|
||||
}
|
||||
|
||||
var shouldResize = $("#ytapiplayer").html() === "";
|
||||
|
||||
if (PLAYER && typeof PLAYER.getVolume === "function") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue