|
|
@ -21,8 +21,9 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ( parseInt(options.opts.autoAnalyzeHeaders) ) {
|
|
|
|
if ( options.opts.autoAnalyzeHeaders === "0" || options.opts.autoAnalyzeHeaders === "1" ) {
|
|
|
|
d.getElementById('option-auto-analyze-headers').setAttribute('checked', 'checked');
|
|
|
|
//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) ) {
|
|
|
|
if ( parseInt(options.opts.upgradeMessage) ) {
|
|
|
@ -35,7 +36,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
save: 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.upgradeMessage = d.getElementById('option-upgrade-message' ).checked ? 1 : 0;
|
|
|
|
options.opts.tracking = d.getElementById('option-tracking' ).checked ? 1 : 0;
|
|
|
|
options.opts.tracking = d.getElementById('option-tracking' ).checked ? 1 : 0;
|
|
|
|
|
|
|
|
|
|
|
|