mirror of
https://github.com/novnc/noVNC.git
synced 2026-05-31 17:39:39 +00:00
Add Chrome Frame support. Close requests in web.py.
- Add meta tag to vnc.html and vnc_auto.html so that if Chrome Frame is installed, it is used. - Add detection to default_controls.js that shows a message with a Chrome Frame install link if the user is using a version of IE without Canvas support. - Fix web.py so that requests have their connection closed after they are completed. This has been a bug for a while but it prevents Chrome Frame from working because Chrome Frame doesn't activate until the initial request connection closes.
This commit is contained in:
@@ -15,12 +15,26 @@ settingsOpen : false,
|
||||
|
||||
// Render default controls and initialize settings menu
|
||||
load: function(target) {
|
||||
var html, i, DC = DefaultControls, sheet, sheets, llevels;
|
||||
var html = '', i, DC = DefaultControls, sheet, sheets, llevels;
|
||||
|
||||
/* Populate the 'target' DOM element with default controls */
|
||||
if (!target) { target = 'vnc'; }
|
||||
|
||||
html = "";
|
||||
if ((!document.createElement('canvas').getContext) &&
|
||||
window.ActiveXObject) {
|
||||
// Suggest Chrome frame for Internet Explorer users
|
||||
html += '<center><div style="text-align: left; width: 400px">';
|
||||
html += ' You are using a version of Internet Explorer ';
|
||||
html += ' that does not have HTML5 Canvas support. ';
|
||||
html += ' To use noVNC you must use a browser with HTML5 ';
|
||||
html += ' Canvas support or install ';
|
||||
html += ' <a href="http://google.com/chromeframe" target="cframe">';
|
||||
html += ' Google Chrome Frame.</a>';
|
||||
html += '</div></center>';
|
||||
$(target).innerHTML = html;
|
||||
return;
|
||||
}
|
||||
|
||||
html += '<div id="VNC_controls">';
|
||||
html += ' <ul>';
|
||||
html += ' <li>Host: <input id="VNC_host"></li>';
|
||||
|
||||
Reference in New Issue
Block a user