electerious / ackee-tracker

Transfer data to Ackee.
MIT License
196 stars 22 forks source link

Warning fills logs #20

Closed rc1 closed 4 years ago

rc1 commented 4 years ago

Hello.

I'm building server side rendered apps with Next.js. My logs get filled with: "Ackee is not executing automatically because you are using it in an environment without a window object'". It would be great if this was removed or only logged once.

Thanks

https://github.com/electerious/ackee-tracker/blob/0d8034b99f20dc46bb6713624bb6721f33ba5a6f/src/scripts/main.js#L271

electerious commented 4 years ago

Makes sense. PR welcome!

electerious commented 4 years ago

Done 😊 Will be part of the next release.