Skip to content
Browse files

fix: wrong short circuit

  • Loading branch information...
1 parent 75051ec commit d6f32d395641d39cbbbcd7302c32138d79fedb4e @scraperonce committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/rturtle0.js
View
2 src/rturtle0.js
@@ -15,7 +15,7 @@ if (!String.prototype.trim) {
/**
* ALERT: REMOVE ALL "console.log"
*/
-if (!console && !console.log) {
+if (!console || !console.log) {
window.console = console || {};
console.log = function(alert) {
// TODO: output errors for "non-developer's browser";

0 comments on commit d6f32d3

Please sign in to comment.
Something went wrong with that request. Please try again.