Commit 89f17a77 authored by gxkai's avatar gxkai

fix: jvm

parent afd49521
...@@ -34,12 +34,14 @@ export class ExecutionContext { ...@@ -34,12 +34,14 @@ export class ExecutionContext {
} }
init (config) { init (config) {
if (config.get('settings/always-use-vm')) { // 始终使用jvm
this.executionContext = 'vm' this.executionContext = 'vm'
} else { // if (config.get('settings/always-use-vm')) {
this.executionContext = injectedProvider ? 'injected' : 'vm' // this.executionContext = 'vm'
if (this.executionContext === 'injected') this.askPermission() // } else {
} // this.executionContext = injectedProvider ? 'injected' : 'vm'
// if (this.executionContext === 'injected') this.askPermission()
// }
} }
askPermission () { askPermission () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment