调整初始化方式
parent
2aaa711a89
commit
8abfbee5dc
|
@ -189,6 +189,10 @@ class EventEmitter {
|
|||
window.native = new EventEmitter()
|
||||
|
||||
Object.assign(native, {
|
||||
async init() {
|
||||
let env = await handler('init') //.then(r => (native.env = r))
|
||||
native.env = env
|
||||
},
|
||||
quit() {
|
||||
return handler('quit', {}, null)
|
||||
},
|
||||
|
@ -401,8 +405,3 @@ Object.assign(native, {
|
|||
|
||||
handler
|
||||
})
|
||||
|
||||
!(async function () {
|
||||
let env = await handler('init') //.then(r => (native.env = r))
|
||||
native.env = env
|
||||
})()
|
||||
|
|
Loading…
Reference in New Issue