From af6a5ea1b97ee039b6e5e91db6522ffb4ade1dfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 24 Feb 2021 12:40:28 +0100 Subject: [PATCH] Check widget existence when top revealer finishes reveal Prevent errors when app was closed during top revealer animation. --- src/revealers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/revealers.js b/src/revealers.js index 0a6630d6..2f8f585b 100644 --- a/src/revealers.js +++ b/src/revealers.js @@ -194,6 +194,7 @@ class ClapperRevealerTop extends CustomRevealer if(this.child_revealed) { const clapperWidget = this.root.child; + if(!clapperWidget) return; clapperWidget._setHideControlsTimeout(); }