klaro-js
klaro-js copied to clipboard
Page reload after accept
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();
}
})