Skip to content

Commit

Permalink
#7 Solve warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkha committed Nov 4, 2014
1 parent a7ba179 commit 4308463
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/scripts/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

function loadText() {
var keys = ["Sel", "Auto", "Telex", "Vni", "Off", "Tips", "TipsCtrl", "Demo", "DemoCopy"];
for (k in keys) {
for (var k in keys) {
$g("txt" + keys[k]).innerHTML = getI18n("extPopup" + keys[k]);
}
}
Expand All @@ -36,16 +36,16 @@
var vniEle = $g("vni");

chrome.extension.sendMessage({'get_prefs':'all'}, function(response){
if (response.onOff == 0) {
if (response.onOff === 0) {
offEle.checked = true;
} else {
if (response.method == 0) {
if (response.method === 0) {
autoEle.checked = true;
}
if (response.method == 1) {
if (response.method === 1) {
telexEle.checked = true;
}
if (response.method == 2) {
if (response.method === 2) {
vniEle.checked = true;
}
}
Expand Down

0 comments on commit 4308463

Please sign in to comment.