clicking region in start screen runs init

This commit is contained in:
Akbar Rahman 2021-04-11 16:51:59 +01:00
parent bac7417bb7
commit 60f5c8dac0

View File

@ -123,9 +123,11 @@ function setSelectorMatches(value){
function displaySelectorMatches(){
selectorResultsHTML.innerHTML = selectorMatches
.concat(ALL_REGIONS)
.map(region => {
return `<div class="selector_result" onclick="setSelectorValue('${region}')"> ${region} </div>`
return `<div class="selector_result" onclick="setSelectorValue('${region}');init()"> ${region} </div>`
})
.sort()
.join('');
}