node-hue-api icon indicating copy to clipboard operation
node-hue-api copied to clipboard

Cannot be used in browser due to a minor issue

Open deadcyclo opened this issue 2 years ago • 0 comments

I've spent the evening trying to get this to work (only importing the api to not get issues with the discovery service) in a vue3 project using several polyfills to get the needed node functionality in the browser. Unfortunately it wasn't successful due to I minor issue. You have used the headers.raw() function, which is a node-fetch only feature, and not available in browsers. Would you please consider re-writing this to not use headers.raw() so it can be used in browsers?

deadcyclo avatar Nov 05 '23 21:11 deadcyclo