Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import { importFingerprintLoader } from '../shared/fingerprint/import'
import { logger } from '../shared/logger'
const scriptTag = document.currentScript
const agentData = scriptTag?.dataset?.agentData
if (agentData) {
importFingerprintLoader()
.then((fp) => {
fp.handleAgentData(agentData)
logger.debug('Agent data processed:', agentData)
})
.catch((error) => {
logger.error('Error processing agent data:', error)
})
} else {
logger.warn('No agent data found in the script tag.')
}
|