Merge pull request #461 from q--/patch-1

Remove JavaScript for setting the "analyze headers" option
main
Elbert Alias 11 years ago
commit f915247b67

@ -21,8 +21,9 @@ document.addEventListener('DOMContentLoaded', function() {
}
}
if ( parseInt(options.opts.autoAnalyzeHeaders) ) {
d.getElementById('option-auto-analyze-headers').setAttribute('checked', 'checked');
if ( options.opts.autoAnalyzeHeaders === "0" || options.opts.autoAnalyzeHeaders === "1" ) {
//Remove old stored option from localStorage because it's no longer needed. This can be entirely removed in future versions
delete localStorage['autoAnalyzeHeaders'];
}
if ( parseInt(options.opts.upgradeMessage) ) {
@ -35,7 +36,6 @@ document.addEventListener('DOMContentLoaded', function() {
},
save: function() {
options.opts.autoAnalyzeHeaders = d.getElementById('option-auto-analyze-headers').checked ? 1 : 0;
options.opts.upgradeMessage = d.getElementById('option-upgrade-message' ).checked ? 1 : 0;
options.opts.tracking = d.getElementById('option-tracking' ).checked ? 1 : 0;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 B

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 B

Loading…
Cancel
Save