User:Qwerfjkl/scripts/massXFD.js: Difference between revisions

Content deleted Content added
m Edit the target talk page, not the redirect (via CAE)
Hopefully account for title parsing errors [Factotum]
Line 1,282:
}
titleList.forEach(function (title) {
if (title) try {
if (title) {
var targets = title.split('|');
var newTitle = targets.shift();
 
newTitle = normalise(newTitle);
if (!Object.keys(titles).includes(newTitle)) {

titles[newTitle] = targets.map(normalise);
}
}
} catch {
console.error(`[MassXFD] Error parsing title "${title}"`);
titleListInputField.setValidityFlag(false);
error = true;
}
});