From 225fa662c82271e76c29d90636e5b39e1ca3b7da Mon Sep 17 00:00:00 2001 From: TheFlash787 Date: Thu, 13 Aug 2020 07:46:11 +0100 Subject: [PATCH] Add a dismiss handler to the restricted-server overlay. --- app/assets/js/scripts/landing.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/js/scripts/landing.js b/app/assets/js/scripts/landing.js index 3feaf90..9b7243a 100644 --- a/app/assets/js/scripts/landing.js +++ b/app/assets/js/scripts/landing.js @@ -780,9 +780,11 @@ function checkCurrentServer(errorOverlay = true){ 'Switch Server' ) setOverlayHandler(() => { - document.activeElement.blur() toggleServerSelection(true) }) + setDismissHandler(() => { + toggleOverlay(false) + }) toggleOverlay(true, true) } return false