1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-27 02:59:47 +02:00

fix stuff

This commit is contained in:
lxsang
2018-10-09 12:14:33 +02:00
parent c3f58c08ed
commit 0ad5eaa138
8 changed files with 23 additions and 14 deletions

View File

@ -29,6 +29,8 @@ class WebVNC extends window.classes.BaseObject
r('demo', 'demo')
@client.oncopy = (text) ->
cosole.log text
@client.onerror = (m) ->
alert(m)
@client.init()
.then () ->
$("#connect").click (e) ->

View File

@ -199,6 +199,9 @@
this.client.oncopy = function(text) {
return cosole.log(text);
};
this.client.onerror = function(m) {
return alert(m);
};
return this.client.init().then(function() {
$("#connect").click(function(e) {
return me.client.connect("/opt/www/vnc.conf", {