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) => {
filesProviders['browser'].get(path, (error, content) => {
if (error) { if (error) {
console.log(error) console.log(error)
} else { } else {
obj[y] = content obj[path] = content
count++ count++
check(y) 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