-
Notifications
You must be signed in to change notification settings - Fork 161
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
Conversation
There was a problem hiding this 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( |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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:
options: FullscreenOptions = ???): js.Promise[Unit] = js.native | |
options: FullscreenOptions = js.native): js.Promise[Unit] = js.native |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 075d58a
Closes #376