diff --git a/main.js b/main.js index 61599e0..9012104 100644 --- a/main.js +++ b/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)