initialize root node in the init function so that it can be translated

This commit is contained in:
Zlatin Balevsky
2019-12-17 20:19:38 +00:00
parent fa94c8ebfa
commit 1cc511b0ae

View File

@ -99,10 +99,11 @@ function refreshStatus() {
}
var treeRevision = -1
var root = new Node("root",null,false, null, _t("Shared Files"), -1, null, false, false, -1)
var root
var nodesById = new Map()
function initFiles() {
root = new Node("root",null,false, null, _t("Shared Files"), -1, null, false, false, -1)
setInterval(refreshStatus, 3000)
setTimeout(refreshStatus, 1)