| 725 | if (!toastContainer) { | 725 | if (!toastContainer) { |
| 726 | toastContainer = document.createElement('div'); | 726 | toastContainer = document.createElement('div'); |
| 727 | toastContainer.setAttribute('id', 'toast-container'); | 727 | toastContainer.setAttribute('id', 'toast-container'); |
| | 728 | if (toastr.options.positionClass) toastContainer.classList.add(toastr.options.positionClass); |
| 728 | } | 729 | } |
| 729 | | 730 | |
| 730 | // Check if toastr is already a child. If not, we need to move it inside this dialog. | 731 | // Check if toastr is already a child. If not, we need to move it inside this dialog. |