Skip to content

Commit cb84395

Browse files
committed
fix: types
1 parent 166b83b commit cb84395

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/tracker/src/core/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ export function getTrackerConfig(): TrackerOptions {
4747

4848
if (!script) {
4949
const scripts = document.getElementsByTagName('script');
50-
for (let i = 0; i < scripts.length; i++) {
51-
const src = scripts[i].src;
50+
for (const currentScript of scripts) {
51+
const src = currentScript.src;
5252
if (src && (src.includes('/databuddy.js') || src.includes('/databuddy-debug.js'))) {
53-
script = scripts[i];
53+
script = currentScript;
5454
break;
5555
}
5656
}

0 commit comments

Comments
 (0)