diff options
| author | ccd0 <admin@containerchan.org> | 2014-03-04 20:50:06 -0800 |
|---|---|---|
| committer | ccd0 <admin@containerchan.org> | 2014-03-04 20:50:06 -0800 |
| commit | 5698ebfdcaf0e5d96f10eb404f2d1687ed67a34c (patch) | |
| tree | 4ef9e4984f0409d2de290542655add71cbaacb6b | |
| parent | e4210300ce521368e6e6dccc3b4471e72d4e1e78 (diff) | |
work around Firefox volume control bug
| -rw-r--r-- | expandvideo.js | 3 |
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 |
