Skip to content

Commit f0a14a3

Browse files
committed
Fix type definition
Fixes #166 Fixes #165
1 parent 38eeb42 commit f0a14a3

File tree

6 files changed

+6
-11
lines changed

6 files changed

+6
-11
lines changed

dist/screenfull.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ declare namespace screenfull {
3333
}
3434
```
3535
*/
36-
readonly isEnabled: boolean;
36+
readonly isEnabled: true;
3737

3838
/**
3939
Exposes the raw properties (prefixed if needed) used internally.

dist/screenfull.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* screenfull
3-
* v5.0.0 - 2019-09-09
3+
* v5.0.1 - 2020-01-19
44
* (c) Sindre Sorhus; MIT License
55
*/
66
(function () {

dist/screenfull.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Simple wrapper for cross-browser usage of the JavaScript Fullscreen API, which lets you bring the page or any element into fullscreen.",
55
"license": "MIT",
66
"repository": "sindresorhus/screenfull.js",
7+
"funding": "https://github.com/sponsors/sindresorhus",
78
"author": {
89
"name": "Sindre Sorhus",
910
"email": "sindresorhus@gmail.com",

readme.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> Simple wrapper for cross-browser usage of the JavaScript [Fullscreen API](https://developer.mozilla.org/en/DOM/Using_full-screen_mode), which lets you bring the page or any element into fullscreen. Smoothens out the browser implementation differences, so you don't have to.
44
5-
**This package is feature complete. No new changes will be accepted.**
5+
**This package is feature complete. No new features will be accepted.**
66

77
#### [Demo](https://sindresorhus.com/screenfull.js)
88

@@ -50,7 +50,6 @@ $ npm install screenfull
5050

5151
Also available on [cdnjs](https://cdnjs.com/libraries/screenfull.js).
5252

53-
5453
## Why?
5554

5655
### Screenfull
@@ -86,7 +85,6 @@ if (document.fullscreenEnabled) {
8685
// This is not even entirely comprehensive. There's more.
8786
```
8887

89-
9088
## Support
9189

9290
[Supported browsers](http://caniuse.com/fullscreen)
@@ -95,7 +93,6 @@ if (document.fullscreenEnabled) {
9593

9694
**Note:** Safari is supported on desktop and iPad, but not on iPhone. This is a limitation in the browser, not in Screenfull.
9795

98-
9996
## Documentation
10097

10198
### Examples
@@ -207,7 +204,6 @@ export class ToggleFullscreenDirective {
207204
<button toggleFullscreen>Toggle fullscreen<button>
208205
```
209206

210-
211207
### API
212208

213209
#### .request()
@@ -268,7 +264,6 @@ Returns a boolean whether you are allowed to enter fullscreen. If your page is i
268264

269265
Exposes the raw properties (prefixed if needed) used internally: `requestFullscreen`, `exitFullscreen`, `fullscreenElement`, `fullscreenEnabled`, `fullscreenchange`, `fullscreenerror`
270266

271-
272267
## FAQ
273268

274269
### How can I navigate to a new page when fullscreen?
@@ -295,7 +290,6 @@ $('#new-page-btn').click(() => {
295290
});
296291
```
297292

298-
299293
## Resources
300294

301295
- [Using the Fullscreen API in web browsers](http://hacks.mozilla.org/2012/01/using-the-fullscreen-api-in-web-browsers/)

src/screenfull.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ declare namespace screenfull {
3333
}
3434
```
3535
*/
36-
readonly isEnabled: boolean;
36+
readonly isEnabled: true;
3737

3838
/**
3939
Exposes the raw properties (prefixed if needed) used internally.

0 commit comments

Comments
 (0)