forked from MapComplete/MapComplete
UX: add small error popup
This commit is contained in:
parent
2cd4cee58a
commit
c894292d32
1 changed files with 9 additions and 0 deletions
|
@ -72,6 +72,15 @@
|
|||
> = UIEventSource.asObject(osmConnection.getPreference("spied-upon-users"), [])
|
||||
|
||||
async function load() {
|
||||
try {
|
||||
await loadUnsafe()
|
||||
} catch (e) {
|
||||
loadingData = false
|
||||
alert("Loading failed")
|
||||
}
|
||||
}
|
||||
|
||||
async function loadUnsafe() {
|
||||
const user = username.data
|
||||
if (user.indexOf(";") < 0) {
|
||||
const inspectedData = inspectedContributors.data
|
||||
|
|
Loading…
Add table
Reference in a new issue