pull/5370/head
filip mertens 11 months ago
parent c450af7788
commit 37819f0974
  1. 4
      apps/remixdesktop/src/plugins/compilerLoader.ts

@ -129,14 +129,14 @@ class CompilerLoaderPluginClient extends ElectronBasePluginClient {
async getJsonBinData() {
const lists = await this.getLists()
console.log('getJsonBinData', Date.now())
this.solJsonBinData = {
baseURLWasm: 'http://localhost:' + (server.address() as any).port + '/compilers',
baseURLBin: 'http://localhost:' + (server.address() as any).port + '/compilers',
wasmList: lists.wasmData || [],
binList: lists.binData || [],
}
console.log('emit', Date.now())
const localCompilers = await this.listCompilers()
this.solJsonBinData.wasmList && (this.solJsonBinData.wasmList = this.solJsonBinData.wasmList.map((item) => {
localCompilers.includes(item.path) ? (item.wasmURL = 'http://localhost:' + (server.address() as any).port + '/compilers/') && (item.isDownloaded=true) : (item.wasmURL = baseURLWasm) && (item.isDownloaded = false)

Loading…
Cancel
Save