gui: Refactor to make encryption diff smaller (#7049)

This commit is contained in:
Simon Frei
2020-10-23 08:27:02 +02:00
committed by GitHub
parent f0f60ba2e7
commit a20d85d451
6 changed files with 106 additions and 126 deletions
+9
View File
@@ -74,6 +74,15 @@ function deviceMap(l) {
return m;
}
function deviceList(m) {
var l = [];
for (var id in m) {
l.push(m[id]);
}
l.sort(deviceCompare);
return l;
}
function folderMap(l) {
var m = {};
l.forEach(function (r) {