diff options
| author | Adam Soltys <[email protected]> | 2026-06-28 07:48:21 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-28 07:48:21 -0700 |
| commit | 5e19371642b0d2edc7540f96f53a17c47cf51a15 (patch) | |
| tree | bf135170401571d7190043febecd3d542310fb24 /src/app.js | |
| parent | ad71e8e879b51d4af12e74d108515d9d4d64598b (diff) | |
| download | coinosv3-5e19371642b0d2edc7540f96f53a17c47cf51a15.tar.gz coinosv3-5e19371642b0d2edc7540f96f53a17c47cf51a15.zip | |
Source lists: show only the URL, protocol stripped
Drop the human-readable name and the scheme prefix in the data-source and
SP-indexer dropdowns, e.g. 'electrum.coinos.io', 'mempool.space/api',
'tweaks.coinos.io'. 'Custom' stays bare.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/app.js')
| -rw-r--r-- | src/app.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1629,7 +1629,7 @@ function explorerCard() { h('h3', {}, t('dataSource')), h('p', { class: 'small muted', style: 'margin:0' }, t('dataSourceDesc')), h('select', { onChange: (e) => pick(e.target.value) }, - sources.map((o) => h('option', { value: o.id, selected: o.id === src.id }, o.id === 'custom' ? o.label : `${o.label} — ${o.url || o.base}`))), + sources.map((o) => h('option', { value: o.id, selected: o.id === src.id }, o.id === 'custom' ? o.label : (o.url || o.base).replace(/^\w+:\/\//, '')))), src.id === 'custom' ? h('label', { class: 'field' }, h('span', { class: 'lab' }, t('sourceUrl')), @@ -2319,7 +2319,7 @@ function spIndexerCard() { h('h3', {}, t('spIndexerTitle')), h('p', { class: 'small muted', style: 'margin:0' }, t('spIndexerDesc')), h('select', { onChange: (e) => { setSpIndexerConfig({ server: e.target.value, url: cfg.url }, net); render(); } }, - spIndexerPresets(net).map((o) => h('option', { value: o.id, selected: o.id === cfg.server }, o.id === 'custom' ? o.label : `${o.label} — ${o.url}`))), + spIndexerPresets(net).map((o) => h('option', { value: o.id, selected: o.id === cfg.server }, o.id === 'custom' ? o.label : o.url.replace(/^\w+:\/\//, '')))), cfg.server === 'custom' ? h('label', { class: 'field' }, h('span', { class: 'lab' }, t('spIndexerUrl')), |
