update to Settings JavaScript VM (#1330)

fix https://github.com/ethereum/remix-project/issues/1264
pull/1344/head
Rob 3 years ago committed by joseph izang
parent 7ee2d2ae8f
commit 87490fb593
  1. 2
      apps/remix-ide/src/app/tabs/settings-tab.js

@ -100,7 +100,7 @@ module.exports = class SettingsTab extends ViewPlugin {
</div>
`
this._view.optionVM = yo`<input onchange=${onchangeOption} class="custom-control-input" id="alwaysUseVM" data-id="settingsTabAlwaysUseVM" type="checkbox">`
this._view.optionVMLabel = yo`<label class="form-check-label custom-control-label align-middle" for="alwaysUseVM">Always use Ethereum VM at Load</label>`
this._view.optionVMLabel = yo`<label class="form-check-label custom-control-label align-middle" for="alwaysUseVM">Always use JavaScript VM at Load</label>`
if (this.config.get('settings/always-use-vm') === undefined) this.config.set('settings/always-use-vm', true)
if (this.config.get('settings/always-use-vm')) this._view.optionVM.setAttribute('checked', '')
elementStateChanged(self._view.optionVMLabel, !this.config.get('settings/always-use-vm'))

Loading…
Cancel
Save