Commit 89f17a77 authored by gxkai's avatar gxkai

fix: jvm

parent afd49521
......@@ -34,12 +34,14 @@ export class ExecutionContext {
}
init (config) {
if (config.get('settings/always-use-vm')) {
this.executionContext = 'vm'
} else {
this.executionContext = injectedProvider ? 'injected' : 'vm'
if (this.executionContext === 'injected') this.askPermission()
}
// 始终使用jvm
this.executionContext = 'vm'
// if (config.get('settings/always-use-vm')) {
// this.executionContext = 'vm'
// } else {
// this.executionContext = injectedProvider ? 'injected' : 'vm'
// if (this.executionContext === 'injected') this.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