Skip to content

Move the entry point of the API to the window.navigator interface. - #71

Merged
kenchris merged 1 commit into
w3c:gh-pagesfrom
darktears:screen-to-window-interface
Apr 30, 2021
Merged

kenchris merged 1 commit into
w3c:gh-pagesfrom
darktears:screen-to-window-interface

Conversation

@darktears

@darktears darktears commented Apr 29, 2021 •

Copy link
Copy Markdown
Contributor

Closes #67


Preview | Diff

@darktears

Copy link
Copy Markdown
Contributor Author

@beaufortfrancois beaufortfrancois left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with nits

Comment thread index.html Outdated
<pre class="example js" title="React to poster change">
screen.posture.addEventListener("change", () => {
console.log(`The current posture is: ${screen.posture.type}!`);
window.navigator.devicePosture.addEventListener("change", () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
window.navigator.devicePosture.addEventListener("change", () => {
navigator.devicePosture.addEventListener("change", () => {

Comment thread index.html Outdated
screen.posture.addEventListener("change", () => {
console.log(`The current posture is: ${screen.posture.type}!`);
window.navigator.devicePosture.addEventListener("change", () => {
console.log(`The current posture is: ${window.navigator.devicePosture.type}!`);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log(`The current posture is: ${window.navigator.devicePosture.type}!`);
console.log(`The current posture is "${navigator.devicePosture.type}".`);

@darktears
darktears force-pushed the screen-to-window-interface branch from 7c0a470 to a3272e6 Compare April 30, 2021 16:40
@kenchris
kenchris merged commit bb94749 into w3c:gh-pages Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move the posture object out of the Screen interface.

3 participants