refactor guid from title

This commit is contained in:
quenousimporte 2024-02-08 09:07:24 +01:00
parent 33bbafaf7f
commit e7567e4d67
1 changed files with 1 additions and 9 deletions

10
main.js
View File

@ -1117,15 +1117,7 @@ function remotecallfailed(error)
function getguid(title) function getguid(title)
{ {
var guid = null; return Object.keys(metadata).find(guid => metadata[guid].title === title);
foreachmetadata( (g,i) =>
{
if (i.title == title)
{
guid = g;
}
});
return guid;
} }
function gotoline(line) function gotoline(line)