Skip to content

Commit

Permalink
mock a console object if it does not exist (IE9?)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Hunt committed Feb 13, 2013
1 parent 82362c6 commit 29c3490
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/serve/plugins/simulate/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
<title>Game Closure SDK</title>
<script>

if (!window.console) {
window.console = {};
window.console.log = window.console.info = window.console.error = window.console.warn = function () {};
}

window.onload = function () {
jsio.__env.checkSyntax = function (code, filename) {
var xhr = new XMLHttpRequest();
Expand Down

0 comments on commit 29c3490

Please sign in to comment.