From 8b6e2a0fe18b71cb139554f78e754c2c4e975338 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 21 May 2025 20:55:11 +0300 Subject: [PATCH] Return set toast position on container init --- public/scripts/popup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/scripts/popup.js b/public/scripts/popup.js index d346b7ecc..1e1e3e482 100644 --- a/public/scripts/popup.js +++ b/public/scripts/popup.js @@ -725,6 +725,7 @@ export function fixToastrForDialogs() { if (!toastContainer) { toastContainer = document.createElement('div'); toastContainer.setAttribute('id', 'toast-container'); + if (toastr.options.positionClass) toastContainer.classList.add(toastr.options.positionClass); } // Check if toastr is already a child. If not, we need to move it inside this dialog.