瀏覽代碼

Fix sources not appearing for the new wildcard attributions

tags/v0.1.0
Fen Dweller 5 年之前
父節點
當前提交
72dbd9a7b6
共有 1 個檔案被更改,包括 12 行新增2 行删除
  1. +12
    -2
      media/attribution.js

+ 12
- 2
media/attribution.js 查看文件

@@ -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();

Loading…
取消
儲存