From ad921ef17281f18c16164762f6e38cead398c99a Mon Sep 17 00:00:00 2001 From: "Jorge A. Torres" Date: Fri, 30 Apr 2021 14:42:04 -0500 Subject: [PATCH] Set `data-client-token` regardless of user being logged-in --- .../resources/js/modules/DataClientIdAttributeHandler.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/ppcp-button/resources/js/modules/DataClientIdAttributeHandler.js b/modules/ppcp-button/resources/js/modules/DataClientIdAttributeHandler.js index 4d58a385a..9888bc0b8 100644 --- a/modules/ppcp-button/resources/js/modules/DataClientIdAttributeHandler.js +++ b/modules/ppcp-button/resources/js/modules/DataClientIdAttributeHandler.js @@ -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({