mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-08-28 06:42:35 +02:00
update vterm and Antunnel
This commit is contained in:
@@ -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
|
||||
}
|
Reference in New Issue
Block a user