refactor guid from title
This commit is contained in:
parent
33bbafaf7f
commit
e7567e4d67
10
main.js
10
main.js
|
@ -1117,15 +1117,7 @@ function remotecallfailed(error)
|
|||
|
||||
function getguid(title)
|
||||
{
|
||||
var guid = null;
|
||||
foreachmetadata( (g,i) =>
|
||||
{
|
||||
if (i.title == title)
|
||||
{
|
||||
guid = g;
|
||||
}
|
||||
});
|
||||
return guid;
|
||||
return Object.keys(metadata).find(guid => metadata[guid].title === title);
|
||||
}
|
||||
|
||||
function gotoline(line)
|
||||
|
|
Loading…
Reference in New Issue