diff --git a/README.md b/README.md index c2bf5a0..30c9421 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ fill. For example:
Loading
- + The file `include/plain.css` has a list of stylable elements. diff --git a/include/web-socket-js/web_socket.js b/include/web-socket-js/web_socket.js index c2ab6b8..69053a1 100755 --- a/include/web-socket-js/web_socket.js +++ b/include/web-socket-js/web_socket.js @@ -302,10 +302,12 @@ console.error(decodeURIComponent(message)); } + /* if (window.addEventListener) { window.addEventListener("load", WebSocket.__initialize, false); } else { window.attachEvent("onload", WebSocket.__initialize); } + */ })(); diff --git a/vnc.html b/vnc.html index b58b4f6..e8706ff 100644 --- a/vnc.html +++ b/vnc.html @@ -11,7 +11,7 @@ diff --git a/vnc.js b/vnc.js index c0ce32f..622dba9 100644 --- a/vnc.js +++ b/vnc.js @@ -1247,6 +1247,7 @@ load: function (target) { "'file://' URL is incompatible with Adobe Flash"); } else { WebSocket.__swfLocation = "include/web-socket-js/WebSocketMain.swf"; + WebSocket.__initialize(); RFB.use_seq = true; RFB.updateState('disconnected', 'Disconnected'); }