Permalink
Browse files

Warn if websockets is not supported

  • Loading branch information...
1 parent 57b24b9 commit 1c058f5638bc80fbc8c34ea85025b04d8ca59cb8 @mitotic committed Sep 15, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 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) {

0 comments on commit 1c058f5

Please sign in to comment.