work around Firefox volume control bug

This commit is contained in:
ccd0 2014-03-04 20:50:06 -08:00
parent e4210300ce
commit 5698ebfdca

View File

@ -106,6 +106,9 @@ function setupVideo(thumb, url) {
if (bottom > window.innerHeight) {
window.scrollBy(0, bottom - window.innerHeight);
}
// work around Firefox volume control bug
video.volume = Math.max(setting("videovolume") - 0.001, 0);
video.volume = setting("videovolume");
}
// Hovering over thumbnail displays video