[w3c/screen-orientation] Example of usage is incorrect (Issue #245)

Could there be an error in Example 1? `getOppositeOrientation()` uses the line `screen.orientation.startsWith("portrait")` as if screen.orientation returns a string, when it actually returns an object with the type (so the command worked for me if i wrote `screen.orientation.type.startsWith("portrait")`. I would appreciate guidance on this matter if I'm wrong.

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

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

Received on Sunday, 2 April 2023 20:07:43 UTC