Skip to content

Fix #376: Add the Fullscreen API #402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 24, 2020
Merged

Fix #376: Add the Fullscreen API #402

merged 3 commits into from
Mar 24, 2020

Conversation

exoego
Copy link
Contributor

@exoego exoego commented Mar 23, 2020

Closes #376

Copy link
Member

@sjrd sjrd left a comment

Choose a reason for hiding this comment

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

Thanks! I have two comments:

}

class FullscreenOptions(
Copy link
Member

Choose a reason for hiding this comment

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

According to MDN, this should be a trait with a var navigationUI instead of a class.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 5147c02

* MDN
*/
def requestFullscreen(
options: FullscreenOptions = ???): js.Promise[Unit] = js.native
Copy link
Member

Choose a reason for hiding this comment

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

Prefer js.native instead of ??? for default values in JS APIs:

Suggested change
options: FullscreenOptions = ???): js.Promise[Unit] = js.native
options: FullscreenOptions = js.native): js.Promise[Unit] = js.native

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 075d58a

@sjrd sjrd changed the title Add Fullscreen API Fix #376: Add the Fullscreen API Mar 24, 2020
@sjrd sjrd merged commit fb9072f into scala-js:master Mar 24, 2020
@exoego exoego deleted the fullscreen branch March 24, 2020 05:39
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.

Fullscreen API
2 participants