Skip to content

Commit

Permalink
Clean up lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexs-mparticle committed Oct 25, 2024
1 parent 68c73e1 commit 94627d5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pre-init-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ const processPreloadedItem = (readyQueueItem): void => {
} else {
const methodArray = method.split('.');
try {
var computedMPFunction = window.mParticle;
for (let i = 0; i < methodArray.length; i++) {
const currentMethod = methodArray[i];
let computedMPFunction = window.mParticle;
for (const currentMethod of methodArray) {
computedMPFunction = computedMPFunction[currentMethod];
}
((computedMPFunction as unknown) as Function).apply(this, args);
Expand Down

0 comments on commit 94627d5

Please sign in to comment.