linting
This commit is contained in:
parent
057d27221a
commit
02eb28d4e0
30
main.js
30
main.js
|
@ -502,23 +502,6 @@ function savesettings()
|
|||
localStorage.setItem("settings", JSON.stringify(settings));
|
||||
}
|
||||
|
||||
function descendants(note)
|
||||
{
|
||||
var list = [note];
|
||||
var result = [];
|
||||
|
||||
while (list.length)
|
||||
{
|
||||
var current = list.shift();
|
||||
if (result.indexOf(current) == -1)
|
||||
{
|
||||
result.push(current);
|
||||
list = list.concat(children(current));
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
function children(guid)
|
||||
{
|
||||
var content = localStorage.getItem(guid);
|
||||
|
@ -1115,19 +1098,6 @@ function downloadnote()
|
|||
download(title.value + ".md", md.value);
|
||||
}
|
||||
|
||||
function remotecallfailed(error)
|
||||
{
|
||||
if (error)
|
||||
{
|
||||
console.warn(error);
|
||||
showtemporaryinfo("Error: " + error);
|
||||
}
|
||||
else
|
||||
{
|
||||
console.warn("remotecallfailed without details");
|
||||
}
|
||||
}
|
||||
|
||||
function getguid(title)
|
||||
{
|
||||
return Object.keys(metadata).find(guid => metadata[guid].title === title);
|
||||
|
|
Loading…
Reference in New Issue