Upgrade screenfull

This commit is contained in:
Jerko Steiner 2019-11-13 22:23:14 -03:00
parent aafc076a0f
commit 33b3651002
4 changed files with 5 additions and 1254 deletions

1242
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -60,7 +60,6 @@
"react-redux": "^6.0.0", "react-redux": "^6.0.0",
"redux": "^4.0.1", "redux": "^4.0.1",
"redux-logger": "^3.0.6", "redux-logger": "^3.0.6",
"redux-promise-middleware": "^5.1.1",
"redux-thunk": "^2.2.0", "redux-thunk": "^2.2.0",
"simple-peer": "^9.1.2", "simple-peer": "^9.1.2",
"socket.io": "^2.2.0", "socket.io": "^2.2.0",
@ -87,7 +86,6 @@
"@types/react-transition-group": "^4.2.3", "@types/react-transition-group": "^4.2.3",
"@types/redux": "^3.6.0", "@types/redux": "^3.6.0",
"@types/redux-logger": "^3.0.7", "@types/redux-logger": "^3.0.7",
"@types/screenfull": "^4.1.0",
"@types/simple-peer": "^6.1.6", "@types/simple-peer": "^6.1.6",
"@types/socket.io": "^2.1.4", "@types/socket.io": "^2.1.4",
"@types/socket.io-client": "^1.4.32", "@types/socket.io-client": "^1.4.32",
@ -109,12 +107,11 @@
"eslint-plugin-react": "^7.16.0", "eslint-plugin-react": "^7.16.0",
"eslint-plugin-standard": "^4.0.0", "eslint-plugin-standard": "^4.0.0",
"jest": "^24.9.0", "jest": "^24.9.0",
"jest-cli": "^24.8.0",
"lodash": "^4.17.15", "lodash": "^4.17.15",
"node-sass": "^4.13.0", "node-sass": "^4.13.0",
"nodemon": "^1.18.8", "nodemon": "^1.18.8",
"react-transition-group": "^2.5.1", "react-transition-group": "^2.5.1",
"screenfull": "^3.3.3", "screenfull": "^5.0.0",
"supertest": "^3.0.0", "supertest": "^3.0.0",
"ts-jest": "^24.1.0", "ts-jest": "^24.1.0",
"ts-node": "^8.5.0", "ts-node": "^8.5.0",

View File

@ -58,7 +58,7 @@ extends React.PureComponent<ToolbarProps, ToolbarState> {
}) })
} }
handleFullscreenClick = () => { handleFullscreenClick = () => {
if (screenfull.enabled) { if (screenfull.isEnabled) {
screenfull.toggle() screenfull.toggle()
this.setState({ this.setState({
...this.state, ...this.state,

10
src/screenfull.d.ts vendored
View File

@ -1,10 +0,0 @@
declare module 'screenfull' {
interface Screenfull {
enabled: boolean
toggle: () => void
}
declare const screenfull: Screenfull
export = screenfull
}