From f9fea572a593f75016fcb313da3daf67dfded0b6 Mon Sep 17 00:00:00 2001 From: gunmiosb Date: Wed, 29 Jul 2020 11:02:25 +0200 Subject: [PATCH] Removed unnecessary (style.display !== 'none') check Fixes issues 774 and 1861 --- src/overlay.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/overlay.js b/src/overlay.js index af22fa37..9fd1532c 100644 --- a/src/overlay.js +++ b/src/overlay.js @@ -288,10 +288,7 @@ style[transformProp] = ""; } } - - if (style.display !== 'none') { - style.display = 'block'; - } + style.display = 'block'; } },