We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 166b83b commit cb84395Copy full SHA for cb84395
packages/tracker/src/core/utils.ts
@@ -47,10 +47,10 @@ export function getTrackerConfig(): TrackerOptions {
47
48
if (!script) {
49
const scripts = document.getElementsByTagName('script');
50
- for (let i = 0; i < scripts.length; i++) {
51
- const src = scripts[i].src;
+ for (const currentScript of scripts) {
+ const src = currentScript.src;
52
if (src && (src.includes('/databuddy.js') || src.includes('/databuddy-debug.js'))) {
53
- script = scripts[i];
+ script = currentScript;
54
break;
55
}
56
0 commit comments