Update fullscreen.js

This commit is contained in:
Karl Chen 2017-12-24 13:58:15 +08:00 committed by GitHub
parent 8b9cc21c96
commit 3ddbece5d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -38,8 +38,8 @@ class FullScreen {
request (type = 'browser') {
const anotherType = type === 'browser' ? 'web' : 'browser';
this.anotherTypeOn = this.isFullScreen(anotherType);
if (!this.anotherTypeOn) {
const anotherTypeOn = this.isFullScreen(anotherType);
if (!anotherTypeOn) {
this.lastScrollPosition = utils.getScrollPosition();
}
@ -65,7 +65,7 @@ class FullScreen {
break;
}
if (this.anotherTypeOn) {
if (anotherTypeOn) {
this.cancel(anotherType);
}
}