1
0
Fork 0
mirror of https://github.com/marcrobledo/RomPatcher.js.git synced 2025-06-27 16:25:54 +00:00

small refactor

This commit is contained in:
Marc Robledo 2025-04-30 01:15:28 +02:00
parent 844cfcb5a6
commit 3b13994737

View file

@ -43,11 +43,12 @@ IPS.prototype.getDescription=function(){
if(this.EBPmetadata){ if(this.EBPmetadata){
var description=''; var description='';
for(var key in this.EBPmetadata){ for(var key in this.EBPmetadata){
if(key!=='patcher'){ if(key==='patcher')
continue;
const keyPretty=key.charAt(0).toUpperCase() + key.slice(1); const keyPretty=key.charAt(0).toUpperCase() + key.slice(1);
description+=keyPretty+': '+this.EBPmetadata[key]+'\n'; description+=keyPretty+': '+this.EBPmetadata[key]+'\n';
} }
}
return description.trim(); return description.trim();
} }
return null; return null;