]> git.proxmox.com Git - mirror_novnc.git/commit - app/ui.js
Create RFB object on connect
authorSolly Ross <sross@redhat.com>
Tue, 24 Mar 2015 19:05:38 +0000 (15:05 -0400)
committerSolly Ross <sross@redhat.com>
Thu, 26 Mar 2015 21:09:05 +0000 (17:09 -0400)
commit58ded70d150c31df2fbd78c0320af6edc72610fc
tree76d6829e35ae6b5f4d2278a547e58f2a1ca1840c
parent16b3ef77d15179076144d45c9edfdb6d37beb41e
Create RFB object on connect

In e543525faa9cf0d683f41e183e89cd909f3dd229, we switched to creating
a new RFB object on disconnect.  This caused issues, however, since
any errors were only displayed briefly before the new "loaded" text
was displayed instead.

Now, we create the RFB object on connect.  This essentially removes
the usefulness of the "loaded" state, but prevents the aforementioned
problem.

To facilitate this, the code which does detection of cursor URI support
was moved from this Display constructor (which now calls the new
function) into its own function, `Util.browserSupportsCursorURIs()`.

Fixes #467
include/display.js
include/ui.js
include/util.js
tests/test.display.js
vnc.html