summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorccd0 <admin@containerchan.org>2014-03-04 20:50:06 -0800
committerccd0 <admin@containerchan.org>2014-03-04 20:50:06 -0800
commit5698ebfdcaf0e5d96f10eb404f2d1687ed67a34c (patch)
tree4ef9e4984f0409d2de290542655add71cbaacb6b
parente4210300ce521368e6e6dccc3b4471e72d4e1e78 (diff)
work around Firefox volume control bug
-rw-r--r--expandvideo.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/expandvideo.js b/expandvideo.js
index 60e50906..e63f07f6 100644
--- a/expandvideo.js
+++ b/expandvideo.js
@@ -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