Add a dismiss handler to the restricted-server overlay.

This commit is contained in:
TheFlash787 2020-08-13 07:46:11 +01:00
parent 3b4261f6fb
commit 225fa662c8

View File

@ -780,9 +780,11 @@ function checkCurrentServer(errorOverlay = true){
'Switch Server'
)
setOverlayHandler(() => {
document.activeElement.blur()
toggleServerSelection(true)
})
setDismissHandler(() => {
toggleOverlay(false)
})
toggleOverlay(true, true)
}
return false