Add a dismiss handler to the restricted-server overlay.
This commit is contained in:
parent
3b4261f6fb
commit
225fa662c8
@ -780,9 +780,11 @@ function checkCurrentServer(errorOverlay = true){
|
|||||||
'Switch Server'
|
'Switch Server'
|
||||||
)
|
)
|
||||||
setOverlayHandler(() => {
|
setOverlayHandler(() => {
|
||||||
document.activeElement.blur()
|
|
||||||
toggleServerSelection(true)
|
toggleServerSelection(true)
|
||||||
})
|
})
|
||||||
|
setDismissHandler(() => {
|
||||||
|
toggleOverlay(false)
|
||||||
|
})
|
||||||
toggleOverlay(true, true)
|
toggleOverlay(true, true)
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user