Skip to content

Commit 11f3387

Browse files
committed
maint(pat-inject): Change one more forEach to a for loop.
1 parent 3d05847 commit 11f3387

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pat/inject/inject.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,8 @@ const inject = {
595595
) {
596596
$title = sources$[sources$.length - 1];
597597
}
598-
cfgs.forEach((cfg, idx1) => {
598+
599+
for (const [idx1, cfg] of cfgs.entries()) {
599600
const perform_inject = () => {
600601
if (cfg.target !== "none") {
601602
for (const target of cfg.$target) {
@@ -615,7 +616,7 @@ const inject = {
615616
} else {
616617
perform_inject();
617618
}
618-
});
619+
}
619620
if (cfgs[0].nextHref && $el.is("a")) {
620621
// In case next-href is specified the anchor's href will
621622
// be set to it after the injection is triggered.

0 commit comments

Comments
 (0)