klaro-js icon indicating copy to clipboard operation
klaro-js copied to clipboard

Page reload after accept

Open darkopetreski opened this issue 1 year ago • 0 comments

I have read some previous comments how to do a page reload after the accept button is clicked, but cannot find a clean solution. Is there any example of clean solution how to do a page reload on accept all/accept selected ?

Is this a preferred solution ?

    let manager = klaro.getManager()
    manager.watch({
        update: function(manager, eventType, data){
            if (eventType == 'saveConsents')
                location.reload();
        }
    })

darkopetreski avatar May 02 '23 16:05 darkopetreski