Skip to content

Commit

Permalink
fix: fullscreen should render immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Nov 26, 2023
1 parent b87fcf6 commit 4199246
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/flash.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ module.exports = () => {
if (messages.length === 0) continue;
for (const message of messages) {
if (type === 'custom' && typeof message === 'object') {
steps.push(message);
// render any full screen alerts immediately
// eslint-disable-next-line max-depth
if (message.grow === 'fullscreen') {
Swal.fire(message);
} else {
steps.push(message);
}
} else if (typeof message === 'string') {
steps.push({
title:
Expand Down

0 comments on commit 4199246

Please sign in to comment.