fix set content

pull/11/head
yann300 4 years ago committed by ioedeveloper
parent dcbfce81e7
commit 55001c8085
  1. 5
      apps/remix-ide/src/app/files/fileProvider.js

@ -93,7 +93,10 @@ class FileProvider {
cb = cb || function () {}
var unprefixedpath = this.removePrefix(path)
var exists = window.remixFileSystem.existsSync(unprefixedpath)
if (exists && window.remixFileSystem.readFileSync(unprefixedpath, 'utf8') === content) return true
if (exists && window.remixFileSystem.readFileSync(unprefixedpath, 'utf8') === content) {
cb()
return true
}
if (!exists && unprefixedpath.indexOf('/') !== -1) {
this.createDir(path)
}

Loading…
Cancel
Save