From 67e886bd4503dfe7c7eda0071e4f601a0fc93df7 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Wed, 11 Mar 2020 22:06:05 -0500 Subject: [PATCH] Fix msgbox js error --- msgbox/msgbox.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/msgbox/msgbox.js b/msgbox/msgbox.js index 3cf7a5bf..2ad33870 100644 --- a/msgbox/msgbox.js +++ b/msgbox/msgbox.js @@ -145,8 +145,10 @@ function messageBox({ } function removeSelf() { - messageBox.element.remove(); - messageBox.element = null; + if (messageBox.element) { + messageBox.element.remove(); + messageBox.element = null; + } messageBox.resolve = null; } }