fix running default compilation

pull/2262/head
yann300 3 years ago
parent d90a1e4030
commit 712ac17fa8
  1. 1
      apps/solidity-compiler/src/app/compiler-api.ts

@ -330,6 +330,7 @@ export const CompilerApiMixin = (Base) => class extends Base {
e.preventDefault() e.preventDefault()
if(await this.getAppParameter('hardhat-compilation')) this.compileTabLogic.runCompiler('hardhat') if(await this.getAppParameter('hardhat-compilation')) this.compileTabLogic.runCompiler('hardhat')
else if(await this.getAppParameter('truffle-compilation')) this.compileTabLogic.runCompiler('truffle') else if(await this.getAppParameter('truffle-compilation')) this.compileTabLogic.runCompiler('truffle')
else this.compileTabLogic.runCompiler(undefined)
} }
} }
window.document.addEventListener('keydown', this.data.eventHandlers.onKeyDown) window.document.addEventListener('keydown', this.data.eventHandlers.onKeyDown)

Loading…
Cancel
Save