in libs/@guardian/libs/src/consent-management-platform/stub_gpp_usnat.js [129:154]
(window.__gpp_msghandler = function (e) {
var t = 'string' == typeof e.data;
try {
var p = t ? JSON.parse(e.data) : e.data;
} catch (e) {
p = null;
}
if ('object' == typeof p && null !== p && '__gppCall' in p) {
var s = p.__gppCall;
window.__gpp(
s.command,
function (p, n) {
var a = {
__gppReturn: {
returnValue: p,
success: n,
callId: s.callId,
},
};
e.source.postMessage(t ? JSON.stringify(a) : a, '*');
},
'parameter' in s ? s.parameter : null,
'version' in s ? s.version : '1.1',
);
}
}),