Firefox has no problem
var logger = window.console.log,
but Safari gives Type Error the first thing I'm trying to use logger() . Pay attention to the snippet below.
I went ahead and replaced all my logger () with window.console.log () to get rid of the error.
I donβt understand why Safari does not like it and why he calls it a type error.
Mistake
TypeError: enter error
Excerpt
NS.log = function (arg) { if (window.console) { var logger = window.console.log,
javascript safari
user1637281
source share