Skip to content

confirm

confirm is a DOM event that occurs whenever the user unsubscribes from availability notifications via the unsubscribe modal.

Event body

none

Example

In this example we listen to confirm event and perform an action whenever it's emitted.

useStorefront(async (storefront) => {
    document.addEventListener('confirm', () => {
        console.log('User has unsubscribed from notifications via modal');
    });
});