From bca59889c787433a183c9e772700ff769846a9c1 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 16 May 2014 19:52:18 -0700 Subject: [PATCH] drop sound option until we actually get sound somewhere --- src/General/Config.coffee | 4 ---- src/Images/Gallery.coffee | 1 - src/Images/ImageHover.coffee | 1 - src/Images/Video.coffee | 1 - 4 files changed, 7 deletions(-) diff --git a/src/General/Config.coffee b/src/General/Config.coffee index 7be3a175c..1d0139220 100755 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -203,10 +203,6 @@ Config = true 'Show controls on videos expanded inline. Turn this off if you want to contract videos by clicking on them.' ] - 'Allow Sound': [ - true - 'Allow sound in videos.' - ] 'Loop in New Tab': [ true 'Loop videos opened in their own tabs, and apply settings for inline expanded videos to them.' diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index 74330aa8e..83a20a51c 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -147,7 +147,6 @@ Gallery = if elType is 'video' img.loop = true img.autoplay = Conf['Autoplay'] - img.muted = !Conf['Allow Sound'] $.extend img.dataset, @dataset nodes.current.pause?() diff --git a/src/Images/ImageHover.coffee b/src/Images/ImageHover.coffee index 9fd59d066..777eb1b7f 100755 --- a/src/Images/ImageHover.coffee +++ b/src/Images/ImageHover.coffee @@ -29,7 +29,6 @@ ImageHover = if isVideo el.loop = true el.controls = false - el.muted = not Conf['Allow Sound'] el.play() if Conf['Autoplay'] UI.hover root: @ diff --git a/src/Images/Video.coffee b/src/Images/Video.coffee index 6ee8ef4da..49111afc9 100644 --- a/src/Images/Video.coffee +++ b/src/Images/Video.coffee @@ -1,7 +1,6 @@ Video = configure: (video, disableAutoplay) -> video.loop = true - video.muted = !Conf['Allow Sound'] video.controls = Conf['Show Controls'] video.autoplay = false if Conf['Autoplay'] and not disableAutoplay