mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
16 lines
346 B
React
16 lines
346 B
React
import { useEffect } from 'react';
|
|
import config from '../../config/driverAnalytics.json';
|
|
|
|
export default function DriverAnalytics() {
|
|
useEffect(() => {
|
|
if (!config.enabled) return;
|
|
|
|
document.head.append(
|
|
document
|
|
.createRange()
|
|
.createContextualFragment(config.tags.join('\n'))
|
|
);
|
|
}, []);
|
|
|
|
return null;
|
|
} |