there is a simpler and safer solution:
``js
showStatus(text) {
  if(statusMsg.classList.contains('opening')) {
    // The new text is set
   statusMsg.querySelector('p').textContent = text;
   clearTimeout(hidingTimeout);
   hidingTimeout = setTimeout(hide, STATUS_TIME);
   return;
  }
}
``