Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/pat/inject/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,8 @@ const inject = {
) {
$title = sources$[sources$.length - 1];
}
cfgs.forEach((cfg, idx1) => {

for (const [idx1, cfg] of cfgs.entries()) {
const perform_inject = () => {
if (cfg.target !== "none") {
for (const target of cfg.$target) {
Expand All @@ -615,7 +616,7 @@ const inject = {
} else {
perform_inject();
}
});
}
if (cfgs[0].nextHref && $el.is("a")) {
// In case next-href is specified the anchor's href will
// be set to it after the injection is triggered.
Expand Down