summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/preferences/content.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-05-12 11:10:15 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-05-12 11:10:15 +0200
commit99fe0b710994a063ba0d7408c61fb8e8a1463b9f (patch)
treea173fb16ed69669a512fcb63ac227b2987ccb4bb /application/palemoon/components/preferences/content.js
parentcfe5ef4ac7cd59f094b538252161ad74223c47da (diff)
parent34fcf334c8dc043088cbf2622279af4f8c495972 (diff)
downloadUXP-99fe0b710994a063ba0d7408c61fb8e8a1463b9f.tar
UXP-99fe0b710994a063ba0d7408c61fb8e8a1463b9f.tar.gz
UXP-99fe0b710994a063ba0d7408c61fb8e8a1463b9f.tar.lz
UXP-99fe0b710994a063ba0d7408c61fb8e8a1463b9f.tar.xz
UXP-99fe0b710994a063ba0d7408c61fb8e8a1463b9f.zip
Merge branch 'master' of https://github.com/MoonchildProductions/UXP
Diffstat (limited to 'application/palemoon/components/preferences/content.js')
-rw-r--r--application/palemoon/components/preferences/content.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/application/palemoon/components/preferences/content.js b/application/palemoon/components/preferences/content.js
index 0775c6270..5ae84c2f7 100644
--- a/application/palemoon/components/preferences/content.js
+++ b/application/palemoon/components/preferences/content.js
@@ -38,33 +38,11 @@ var gContentPane = {
*/
updateMSE: function ()
{
- var checkboxMSENFR = document.getElementById('videoMSENFR');
var checkboxMSEMP4 = document.getElementById('videoMSEMP4');
var checkboxMSEWebM = document.getElementById('videoMSEWebM');
var preference = document.getElementById('media.mediasource.enabled');
- checkboxMSENFR.disabled = preference.value != true;
checkboxMSEMP4.disabled = preference.value != true;
checkboxMSEWebM.disabled = preference.value != true;
- // Check and disable WebM if necessary
- if (preference.value == true) {
- this.updateMSEWebM();
- }
- },
-
- /**
- * Utility function to enable/disable the checkbox for MSE+WebM depending
- * on the value of media.mediasource.format-reader.
- */
- updateMSEWebM: function ()
- {
- var checkboxMSEWebM = document.getElementById('videoMSEWebM');
- var preference = document.getElementById('media.mediasource.format-reader');
- checkboxMSEWebM.disabled = preference.value == true;
- if (preference.value == true) {
- // Switch off incompatible format
- Services.prefs.setBoolPref('media.mediasource.webm.enabled', false);
- checkboxMSEWebM.checked = false;
- }
},
// BEGIN UI CODE