Return set toast position on container init

8b6e2a0fe18b71cb139554f78e754c2c4e975338

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -0Showing whitespace changes
public/scripts/popup.js+1 -0
@@ -725,6 +725,7 @@ export function fixToastrForDialogs() {
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 }
729730
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.