(function(){'use strict'
const windowEvent='ucEvent'
const detailEvent='consent_status'
const eventActions=['onAcceptAllServices','onDenyAllServices','onUpdateServices',]
window.addEventListener(windowEvent,function(e){let isDetailEvent=e.detail.event===detailEvent
let isEventAction=eventActions.indexOf(e.detail.action)!==-1
if(isDetailEvent&&isEventAction){window.location.reload()}})})()