Commit 4333244e authored by yann300's avatar yann300

fix chrome cloud sync (use of resolve directory)

parent 554609b6
...@@ -46,16 +46,19 @@ module.exports = function (filesProviders) { ...@@ -46,16 +46,19 @@ module.exports = function (filesProviders) {
}) })
} }
for (var y in filesProviders['browser'].list()) { filesProviders['browser'].resolve('browser', (error, files) => {
console.log('checking', y) if (!error) {
filesProviders['browser'].get(y, (error, content) => { Object.keys(files).forEach((path) => {
if (error) { filesProviders['browser'].get(path, (error, content) => {
console.log(error) if (error) {
} else { console.log(error)
obj[y] = content } else {
count++ obj[path] = content
check(y) count++
} check(path)
}) }
} })
})
}
})
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment