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)
|
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)
|
||||||
|
|
Loading…
Reference in New Issue