dist/hashedit.js
function() {

      var toast;

      toast = document.createElement('div');
      toast.setAttribute('class', 'hashedit-toast');
      toast.innerHTML = 'Sample Toast';

      // append toast
      if (hashedit.current) {
        hashedit.current.container.appendChild(toast);
      } else {
        document.body.appendChild(toast);
      }

    }
function() {

      var toast;

      toast = document.createElement('div');
      toast.setAttribute('class', 'hashedit-toast');
      toast.innerHTML = 'Sample Toast';

      // append toast
      if (hashedit.current) {
        hashedit.current.container.appendChild(toast);
      } else {
        document.body.appendChild(toast);
      }

    }
function ( ) { var toast ; toast = document . createElement ( 'div' ) ; toast . setAttribute ( 'class' , 'hashedit-toast' ) ; toast . innerHTML = 'Sample Toast' ; // append toast if ( hashedit . current ) { hashedit . current . container . appendChild ( toast ) ; } else { document . body . appendChild ( toast ) ; } }
Create the toast
Create the toast