2 ms·
Maybe I'm lacking imagination, but the only good usecase I can come up with is dimming the website or switching to dark mode. Unless I visit that page very freq
by wongarsu 7y ago
Maybe I'm lacking imagination, but the only good usecase I can come up with is dimming the website or switching to dark mode. Unless I visit that page very frequently that use case is killed completely by a permission promt. It's easier to let me do it manually than to ask for my permission to do it automagically.
- roywiggins 7y agoWebsites already get informed if your phone is set to dark mode, you can darken your page with just CSS. So you don't need actual access to the light sensor for that, and in fact you probably shouldn't use it for that... since you might be overriding the user's dark mode preferences.