Skip to content

Commit

Permalink
修改搜索引擎选项无法记住的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
penghaifeng committed Mar 31, 2019
1 parent baaca8a commit 67107ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,13 @@ function initSettingWindow(){
var radioClick = function(){
Settings.searchEngine = this.value;
};
var currentSe = Settings.searchEngine;
seRadios.forEach(function(v, i){
if(v.value == currentSe){
v.checked = 'checked';
}else{
delete v.checked;
}
v.onclick = radioClick;
});
$('#fg-color').value = Settings.fgColor;
Expand Down

0 comments on commit 67107ee

Please sign in to comment.