Remove JavaScript for setting the "analyze headers" option

Fixes #460.

This will also remove the stored setting if it exists.
main
q-- 11 years ago
parent 936f84b007
commit 3357f518cc

@ -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