Skip to content

Commit

Permalink
fix china list bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
henices committed Nov 23, 2020
1 parent b29bd8e commit 7434d8f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions javascripts/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function loadProxyData() {
}

if (proxySetting['internal'] == 'china') {
$('#use-china-list').attr('checked', true);
$('#china-list').attr('checked', true);
}

if (proxySetting['rules_mode'] == 'Whitelist') {
Expand Down Expand Up @@ -364,7 +364,7 @@ function save() {
else
proxySetting['auth']['enable'] = '';

if ($('#use-china-list').is(':checked')) {
if ($('#china-list').is(':checked')) {
proxySetting['internal'] = "china";
}
else {
Expand Down Expand Up @@ -500,6 +500,8 @@ document.addEventListener('DOMContentLoaded', function () {

$('#rules-mode').change(function() { save(); });

$('#chinalist').change(function() { save(); });

var proxySetting = JSON.parse(localStorage.proxySetting);
$('#pac-type').change(function() {
var type = $('#pac-type').val().split(':')[0];
Expand Down

0 comments on commit 7434d8f

Please sign in to comment.