From 55001c8085a9b36bb67ec26c8cd9e3f2ee8d83b5 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 4 Jun 2020 11:02:15 +0200 Subject: [PATCH] fix set content --- apps/remix-ide/src/app/files/fileProvider.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/files/fileProvider.js b/apps/remix-ide/src/app/files/fileProvider.js index 116f42b368..1fa54ab11c 100644 --- a/apps/remix-ide/src/app/files/fileProvider.js +++ b/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) }