in web-app-pix2info-python/src/frontend/scripts.js [696:719]
async function initProcessors() {
eProcessor.innerHTML = ''
const processors = await getProcessors()
if (!processors) return
let match = null
for (const [name, proc_info] of Object.entries(processors)) {
const option = document.createElement('sl-option')
option.textContent = name
option.value = proc_info
eProcessor.appendChild(option)
// Match by name (keep same processor type if location changes)
if (gParams.processorName === name) match = option
}
if (!match && 0 < eProcessor.children.length) match = eProcessor.children[0]
gParams.processorName = gParams.processorInfo = null
saveParams()
if (match) {
eProcessor.value = match.value
await onProcessorChanged(null)
}
}