Parcourir la source

Fix sources not appearing for the new wildcard attributions

tags/v0.1.0
Fen Dweller il y a 6 ans
Parent
révision
72dbd9a7b6
1 fichiers modifiés avec 12 ajouts et 2 suppressions
  1. +12
    -2
      media/attribution.js

+ 12
- 2
media/attribution.js Voir le fichier

@@ -11408,8 +11408,18 @@ function ownersOfFull(file) {
function sourceOf(file) {
if (attribution.files[file])
return attribution.files[file].source;
else
return undefined;
else {
const found = attribution.prefixes[Object.keys(attribution.prefixes).find(path => {
return (file.indexOf(path) == 0);
})];

if (found === undefined) {
return undefined;
} else {
return found.source;
}
}
}

prepareAttribution();

Chargement…
Annuler
Enregistrer