SweetAlert2 - Dynamic queue without clicking confirm button?
<p>I am using the latest version of the jQuery plugin <a href="https://sweetalert2.github.io/" rel="nofollow noreferrer">SweetAlert2</a>. I want to use the "<strong>Dynamic queue</strong>"-function to make a AJAX call. So on the homepage there is a nice example, but you have to click a confirm button first to execute the AJAX call. I do not want this, when the alert is shown the AJAX call should <strong>execute immediately, without clicking a button</strong>. So how to do this?</p>

<p>Here the example from the homepage</p>

<pre><code>swal.queue
([{
    title: 'Your public IP',
    confirmButtonText: 'Show my public IP',
    text: 'Your public IP will be received via AJAX request',
    showLoaderOnConfirm: true,
    preConfirm: function()
    {
        return new Promise(function (resolve)
        {
            $.get('https://api.ipify.org?format=json').done(function(data)
            {
                swal.insertQueueStep(data.ip);
                resolve();
            });
        });
    }
}])
</code></pre>