From 67107eeaaf09b7bcc26c3c8ab7532d50e43eb1f6 Mon Sep 17 00:00:00 2001 From: penghaifeng Date: Sun, 31 Mar 2019 22:06:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=90=9C=E7=B4=A2=E5=BC=95?= =?UTF-8?q?=E6=93=8E=E9=80=89=E9=A1=B9=E6=97=A0=E6=B3=95=E8=AE=B0=E4=BD=8F?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.js b/src/index.js index 90f366b..07727fc 100644 --- a/src/index.js +++ b/src/index.js @@ -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;