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

Status
This content is read-only, or is not open for further replies.

TickTackk

Guest
offline
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...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom