diff --git a/include/default_controls.js b/include/default_controls.js index 4582682a..65cf3b0e 100644 --- a/include/default_controls.js +++ b/include/default_controls.js @@ -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 += '
'; + 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 += ' '; + html += ' Google Chrome Frame.'; + html += '
'; + $(target).innerHTML = html; + return; + } + html += '
'; html += '