diff --git a/src/components/Screenfull/index.vue b/src/components/Screenfull/index.vue index 4c5a9c37..c78f4745 100644 --- a/src/components/Screenfull/index.vue +++ b/src/components/Screenfull/index.vue @@ -35,14 +35,7 @@ }); return false; } - - if (this.isFullscreen) { - screenfull.exit(); - this.isFullscreen = false; - } else { - screenfull.request(); - this.isFullscreen = true; - } + screenfull.toggle(); } } }