Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Warn if websockets is not supported

  • Loading branch information...
commit 1c058f5638bc80fbc8c34ea85025b04d8ca59cb8 1 parent 57b24b9
@mitotic authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 graphterm/www/graphterm.js
View
5 graphterm/www/graphterm.js
@@ -2602,6 +2602,11 @@ $(window).unload(function() {
$(document).ready(function() {
//LoadHandler();
console.log("Ready");
+ if (!("WebSocket" in window)) {
+ $("body").text("This browser does not support the WebSocket interface that is required for GraphTerm to work. Please use another browser that supports it, such as the latest versions of Chrome/Firefox/Safari or IE10.");
+ return false;
+ }
+
$(document).attr("title", window.location.pathname.substr(1));
if (gMobileDisplay) {
Please sign in to comment.
Something went wrong with that request. Please try again.