We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d05847 commit e311425Copy full SHA for e311425
1 file changed
src/pat/inject/inject.js
@@ -595,7 +595,8 @@ const inject = {
595
) {
596
$title = sources$[sources$.length - 1];
597
}
598
- cfgs.forEach((cfg, idx1) => {
+
599
+ for (const [idx1, cfg] of cfgs.entries()) {
600
const perform_inject = () => {
601
if (cfg.target !== "none") {
602
for (const target of cfg.$target) {
@@ -615,7 +616,7 @@ const inject = {
615
616
} else {
617
perform_inject();
618
- });
619
+ }
620
if (cfgs[0].nextHref && $el.is("a")) {
621
// In case next-href is specified the anchor's href will
622
// be set to it after the injection is triggered.
0 commit comments