fixing async

pull/5370/head
filip mertens 3 years ago
parent c62fb20e61
commit a1713484d2
  1. 4
      apps/remix-ide/src/app/files/fileProvider.js
  2. 1
      apps/remix-ide/src/index.html
  3. 1
      apps/remix-ide/src/production.index.html
  4. 438
      package-lock.json

@ -47,7 +47,7 @@ class FileProvider {
return this.externalFolders.includes(path) return this.externalFolders.includes(path)
} }
discardChanges (path, toastCb, modalCb) { async discardChanges (path, toastCb, modalCb) {
this.remove(path) this.remove(path)
const compilerImport = new CompilerImports() const compilerImport = new CompilerImports()
this.providerExternalsStorage.keys().map(value => { this.providerExternalsStorage.keys().map(value => {
@ -56,7 +56,7 @@ class FileProvider {
this.getNormalizedName(value), this.getNormalizedName(value),
true, true,
(loadingMsg) => { toastCb(loadingMsg) }, (loadingMsg) => { toastCb(loadingMsg) },
(error, content, cleanUrl, type, url) => { async (error, content, cleanUrl, type, url) => {
if (error) { if (error) {
modalCb(error) modalCb(error)
} else { } else {

@ -58,6 +58,7 @@
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/intro.js/2.7.0/introjs.min.css"> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/intro.js/2.7.0/introjs.min.css">
</head> </head>
<body> <body>
<div id="root"></div>
<script type="text/javascript" src="assets/js/init.js"></script> <script type="text/javascript" src="assets/js/init.js"></script>
<script src="runtime.js" type="module"></script> <script src="runtime.js" type="module"></script>
<script src="polyfills.js" type="module"></script> <script src="polyfills.js" type="module"></script>

@ -58,6 +58,7 @@
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/intro.js/2.7.0/introjs.min.css"> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/intro.js/2.7.0/introjs.min.css">
</head> </head>
<body> <body>
<div id="root"></div>
<script type="text/javascript" src="assets/js/init.js"></script> <script type="text/javascript" src="assets/js/init.js"></script>
<script src="polyfills.js" type="module"></script> <script src="polyfills.js" type="module"></script>
<script src="https://kit.fontawesome.com/41dd021e94.js" crossorigin="anonymous"></script> <script src="https://kit.fontawesome.com/41dd021e94.js" crossorigin="anonymous"></script>

438
package-lock.json generated

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save