Set data-client-token regardless of user being logged-in

This commit is contained in:
Jorge A. Torres 2021-04-30 14:42:04 -05:00
parent e2cf37297a
commit ad921ef172

View file

@ -25,11 +25,6 @@ const storeToken = (token) => {
}
const dataClientIdAttributeHandler = (script, config) => {
if(config.user === 0) {
document.body.append(script);
return;
}
fetch(config.endpoint, {
method: 'POST',
body: JSON.stringify({