diff --git a/msgbox/msgbox.js b/msgbox/msgbox.js index b18c2f49..81d7b8fe 100644 --- a/msgbox/msgbox.js +++ b/msgbox/msgbox.js @@ -40,6 +40,11 @@ function messageBox({ onshow(messageBox.element); } + if (!$('#message-box-title').textContent) { + $('#message-box-title').hidden = true; + $('#message-box-close-icon').hidden = true; + } + return new Promise(_resolve => { messageBox.resolve = _resolve; });