diff options
author | FranklinDM <mrmineshafter17@gmail.com> | 2018-11-17 12:09:14 +0800 |
---|---|---|
committer | FranklinDM <mrmineshafter17@gmail.com> | 2018-11-17 12:09:14 +0800 |
commit | fe4c12e2d64627930e4a1581e726d36539b4847c (patch) | |
tree | 2f033fe826b0747785fd7a23ef218821e40fdd0d /application/palemoon/base/content/browser-tabPreviews.js | |
parent | a6b250b47730cc4751cfc5ca9e96a4b74e4d6572 (diff) | |
download | uxp-fe4c12e2d64627930e4a1581e726d36539b4847c.tar.gz |
Issue #638 - Part 9: Add sound icon to all tabs menu
Diffstat (limited to 'application/palemoon/base/content/browser-tabPreviews.js')
-rw-r--r-- | application/palemoon/base/content/browser-tabPreviews.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/application/palemoon/base/content/browser-tabPreviews.js b/application/palemoon/base/content/browser-tabPreviews.js index eaae78ba84..e0755b81d4 100644 --- a/application/palemoon/base/content/browser-tabPreviews.js +++ b/application/palemoon/base/content/browser-tabPreviews.js @@ -940,6 +940,13 @@ var allTabs = { aPreview.setAttribute("image", aPreview._tab.image); else aPreview.removeAttribute("image"); + + aPreview.removeAttribute("soundplaying"); + aPreview.removeAttribute("muted"); + if (aPreview._tab.hasAttribute("muted")) + aPreview.setAttribute("muted", "true"); + else if (aPreview._tab.hasAttribute("soundplaying")) + aPreview.setAttribute("soundplaying", "true"); var thumbnail = tabPreviews.get(aPreview._tab); if (aPreview.firstChild) { |