Skip to content

Commit

Permalink
fix: Slider fullscreen on Electron
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Dec 27, 2016
1 parent 1781111 commit a99ed9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vue-components/slider/Slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default {
},
toggleFullscreen () {
if (this.inFullscreen) {
if (Platform.within.iframe) {
if (!Platform.has.popstate) {
this.inFullscreen = false
}
else {
Expand All @@ -125,7 +125,7 @@ export default {
}
this.inFullscreen = true
if (!Platform.within.iframe) {
if (Platform.has.popstate) {
window.history.pushState({}, '')
window.addEventListener('popstate', this.__popState)
}
Expand Down

0 comments on commit a99ed9b

Please sign in to comment.