+ 1
Why not working?
2 Answers
+ 6
This feature is not supported in most of the browsers and also your code contains ERRORS.
Remove '});' from 7, 11, 15 line and add it to line 19.
See browser compatibility table here:
https://developer.mozilla.org/en-US/docs/Web/API/DeviceLightEvent
+ 1
still not working!
please look into