mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
work
This commit is contained in:
@@ -63,7 +63,7 @@ function initializeModal() {
|
||||
modal.classList.add('hidden')
|
||||
})
|
||||
|
||||
document.addEventListener('keydown', (e) => {
|
||||
document.addEventListener('keydown', e => {
|
||||
if (e.key === 'Escape' && !modal.classList.contains('hidden')) {
|
||||
modal.classList.add('hidden')
|
||||
}
|
||||
@@ -190,8 +190,8 @@ function buildFieldAccessor(config, langCode) {
|
||||
const parts = []
|
||||
const fields = config
|
||||
.split(',')
|
||||
.map((f) => f.trim())
|
||||
.filter((f) => f)
|
||||
.map(f => f.trim())
|
||||
.filter(f => f)
|
||||
|
||||
for (const field of fields) {
|
||||
if (field === 'underscore') {
|
||||
@@ -210,4 +210,4 @@ function buildFieldAccessor(config, langCode) {
|
||||
}
|
||||
|
||||
return parts.length > 0 ? ['coalesce', ...parts] : null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user