- From: Thomas Steiner <notifications@github.com>
- Date: Sun, 30 Jan 2022 23:14:45 -0800
- To: w3c/screen-orientation <screen-orientation@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 31 January 2022 07:14:57 UTC
[`Window.orientation`](https://developer.mozilla.org/en-US/docs/Web/API/Window/orientation) is deprecated. You should instead use [`Screen.orientation`](https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation), which you can properly feature-detect via the snippet below: ```js if ('ScreenOrientation' in window) { // Supported. } ` -- Reply to this email directly or view it on GitHub: https://github.com/w3c/screen-orientation/issues/206#issuecomment-1025443201 You are receiving this because you are subscribed to this thread. Message ID: <w3c/screen-orientation/issues/206/1025443201@github.com>
Received on Monday, 31 January 2022 07:14:57 UTC