Re: [w3c/screen-orientation] Feature detection of orientation.lock (Issue #206)

That pattern is more for things which are not detectable in other ways, e.g. declarative markup features. In this case, just trying to call the function and seeing if it fails seems better... try/catch is just as good as if/else, in general.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/screen-orientation/issues/206#issuecomment-1273972455
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/screen-orientation/issues/206/1273972455@github.com>

Received on Tuesday, 11 October 2022 01:26:59 UTC