Solved Cookie "push_subscription_updated" isn't set using `XF.Cookie.set`

This topic has been solved
T

TickTackk

Guest
JavaScript:

Code:
            }).then(() =>
            {
                if (type === 'update')
                {
                    document.cookie = 'push_subscription_updated=1'
                }
            }).catch(error =>
should be
JavaScript:

Code:
            }).then(() =>
            {
                if (type === 'update')
                {
                    XF.Cookie.set('push_subscription_updated', '1')
                }
            }).catch(error =>

Continue reading...