Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

log messages won't crash cloud9 anymore

  • Loading branch information...
commit b036829fccb3da3e30837a0b531c089e998e9958 1 parent fbdc318
@mikedeboer mikedeboer authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 server/cloud9/view/ide.tmpl.html
View
6 server/cloud9/view/ide.tmpl.html
@@ -22,6 +22,12 @@
workspaceId: <%workspaceId%>,
name: <%name%>
};
+
+ // prevent console messages crash our app!
+ if (typeof window["console"] == "undefined") {
+ var K = function() {};
+ window.console = {log:K,debug:K,dir:K,trace:K,error:K,warn:K,profileStart:K,profileEnd:K};
+ }
var RELEASE = "release";
var DEBUG = "debug";
Please sign in to comment.
Something went wrong with that request. Please try again.