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:
parent
844cfcb5a6
commit
3b13994737
1 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue