Skip to content

Commit

Permalink
Improve
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTVExpert committed Mar 18, 2022
1 parent 231a292 commit 7100b23
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions modules/twinklexfd.js
Original file line number Diff line number Diff line change
Expand Up @@ -806,12 +806,8 @@ Twinkle.xfd.callbacks = {

text += '}}';

if (params.delsortCats) { // Only for AFDs
text += '\n{{subst:Deletion sorting/multi';
params.delsortCats.forEach(function (cat) {
text += '|' + cat;
});
text += '|sig=~~~~}}';
if (params.delsortCats.length) { // Only for AFDs
text += '\n{{subst:Deletion sorting/multi|' + params.delsortCats.join('|') + '|sig=~~~~}}';
}

return text;
Expand Down

0 comments on commit 7100b23

Please sign in to comment.