electricitymaps / bloom-contrib

Making carbon footprint data available to everyone.
https://www.bloomclimate.com
MIT License
436 stars 104 forks source link

Fix destructuring of connect() parameters #432

Closed torbjornvatn closed 4 years ago

torbjornvatn commented 4 years ago

Add the logger parameter to destructuring

From what I can tell all the connect() implementations have the last } of the parameter destructuring in the wrong place. It gives me this error:

"openUrlAndWaitForCallback is not a function"

When I move the } all the way to the end, it works just fine.

torbjornvatn commented 4 years ago

Sorry, I added the wrong branch to this PR