Created
April 15, 2022 16:29
-
-
Save vinzcelavi/39acd0228585a719b045347d8757861a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
useEffect(() => { | |
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | |
// @ts-ignore | |
window._axcb = window._axcb || []; | |
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | |
// @ts-ignore | |
window._axcb.push(axeptio => { | |
const element = document.querySelectorAll( | |
'[name*="axeptio_processings_axeptio"]' | |
); | |
if (typeof element !== 'undefined' && element !== null) { | |
axeptio.startService('processings', axeptio.config.processings); | |
} | |
}); | |
}, []); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment