update vterm and Antunnel

This commit is contained in:
lxsang
2020-08-08 19:40:21 +02:00
parent 8b2c534e80
commit 328172ef90
11 changed files with 39 additions and 690 deletions

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@
"author": "Xuan Sang LE",
"email": "xsang.le@lxsang.me"
},
"version":"0.1.1-a",
"version":"0.1.2-a",
"category":"Library",
"iconclass":"fa fa-adn",
"mimes":["none"],

Binary file not shown.

View File

@ -217,16 +217,17 @@ class AntunnelApi
@onclose() if @onclose()
W = this
W.Antunnel = {
tunnel: undefined
init: ((url) ->
return new Promise (resolve, reject) ->
return resolve(W.Antunnel.tunnel) if W.Antunnel.tunnel
W.Antunnel.tunnel = new AntunnelApi(url)
W.Antunnel.tunnel.onclose = () -> W.Antunnel.tunnel = undefined
W.Antunnel.tunnel.ready().then () ->
resolve(W.Antunnel.tunnel)
.catch (e) -> reject(e)),
Subscriber: Subscriber,
Msg: Msg
}
if not W.Antunnel
W.Antunnel = {
tunnel: undefined
init: ((url) ->
return new Promise (resolve, reject) ->
return resolve(W.Antunnel.tunnel) if W.Antunnel.tunnel
W.Antunnel.tunnel = new AntunnelApi(url)
W.Antunnel.tunnel.onclose = () -> W.Antunnel.tunnel = undefined
W.Antunnel.tunnel.ready().then () ->
resolve(W.Antunnel.tunnel)
.catch (e) -> reject(e)),
Subscriber: Subscriber,
Msg: Msg
}

View File

@ -9,7 +9,7 @@
"author": "Xuan Sang LE",
"email": "xsang.le@lxsang.me"
},
"version":"0.1.1-a",
"version":"0.1.2-a",
"category":"Library",
"iconclass":"fa fa-adn",
"mimes":["none"],