diff --git a/4chan_x.user.js b/4chan_x.user.js index 844c05e57..1a79a5638 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -148,8 +148,8 @@ } }; if (typeof console !== "undefined" && console !== null) { - log = function() { - return console.log.apply(console, arguments); + log = function(arg) { + return console.log(arg); }; } if (!Object.keys) { diff --git a/script.coffee b/script.coffee index e748d91d9..fcdf0660d 100644 --- a/script.coffee +++ b/script.coffee @@ -86,8 +86,10 @@ config = # XXX chrome can't into `{log} = console` if console? - log = -> - console.log arguments... + # XXX scriptish - console.log.apply is not a function + # https://github.com/scriptish/scriptish/issues/499 + log = (arg) -> + console.log arg # XXX opera cannot into Object.keys if not Object.keys