v5.2 sync

This commit is contained in:
2022-03-23 22:50:43 +01:00
parent 6655bee0bc
commit 6fcfa72b59
3 changed files with 6 additions and 15 deletions

View File

@ -142,7 +142,7 @@ const patch_core_tables = (tableList) => {
}
FilePicker.browse("data", "modules/WH4-fr-translation/tables/").then(resp => {
for (var file of resp.files) {
let filename = file.substring(file.lastIndexOf("/")+1, file.indexOf(".json"));
let filename = file.substring(file.lastIndexOf("/")+1, file.indexOf(".json"))
if ( tableList[filename] == 1 ) { // Matching table name -> patch !
fetch(file).then(r=>r.json()).then(records => {
//console.log("Patch !!!", filename, records);