Skip to content

Commit

Permalink
restored console log compatibility layer to provide support to non-co…
Browse files Browse the repository at this point in the history
…nsole enabled browsers.
  • Loading branch information
stephenlb committed Dec 19, 2012
1 parent c2fc18f commit bffbc8a
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 13 deletions.
8 changes: 6 additions & 2 deletions javascript/3.4/pubnub-3.4.js
Expand Up @@ -57,8 +57,12 @@ var NOW = 1
/** /**
* CONSOLE COMPATIBILITY * CONSOLE COMPATIBILITY
*/ */
window.console||(window.console=window.console||{}); window.console || (window.console=window.console||{});
console.error||(console.error=((window.opera||{}).postError||function(){})); console.log || (
console.log =
console.error =
((window.opera||{}).postError||function(){})
);


/** /**
* UTILITIES * UTILITIES
Expand Down
8 changes: 4 additions & 4 deletions javascript/3.4/pubnub-3.4.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified javascript/3.4/pubnub-3.4.min.js.gz
Binary file not shown.
8 changes: 6 additions & 2 deletions javascript/pubnub-3.4.js
Expand Up @@ -57,8 +57,12 @@ var NOW = 1
/** /**
* CONSOLE COMPATIBILITY * CONSOLE COMPATIBILITY
*/ */
window.console||(window.console=window.console||{}); window.console || (window.console=window.console||{});
console.error||(console.error=((window.opera||{}).postError||function(){})); console.log || (
console.log =
console.error =
((window.opera||{}).postError||function(){})
);


/** /**
* UTILITIES * UTILITIES
Expand Down
8 changes: 4 additions & 4 deletions javascript/pubnub-3.4.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified javascript/pubnub-3.4.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion javascript/tests/publish-test.html
Expand Up @@ -24,7 +24,7 @@


<div id=pubnub></div> <div id=pubnub></div>
<script src=../json.js></script> <script src=../json.js></script>
<script src=../pubnub-3.4.js></script> <script src=../pubnub-3.4.min.js></script>
<script>(function(){ <script>(function(){


// -------------------------------- // --------------------------------
Expand Down

0 comments on commit bffbc8a

Please sign in to comment.