diff --git a/lib/main.js b/lib/main.js index 570746bf353a2fe108ca97318896707bb6ceb741..7c602664a137486eec918c6789a9394617692528 100644 --- a/lib/main.js +++ b/lib/main.js @@ -107,10 +107,10 @@ function removeCountry(sCountry) { } function countryClicked(oEvent) { - if (oEvent.originalTarget.checked) { - addCountry(oEvent.originalTarget.value); + if (oEvent.target.checked) { + addCountry(oEvent.target.value); } else { - removeCountry(oEvent.originalTarget.value); + removeCountry(oEvent.target.value); } window.localStorage.corona = JSON.stringify({ countries: aCountries