Skip to content

Commit

Permalink
Fixe redirect after Fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
David Pellier committed Feb 15, 2017
1 parent 0386da2 commit f36c675
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/castorGUI.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/GUIManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ var Extends = function(ChildClass, ParentClass) { // ClassB (child) herite de cl
this.head.appendChild(this.header);
}
this.addStyle(this.canvasCss, this.theme);
document.addEventListener('webkitfullscreenchange', function() {location.reload();}, false);
document.addEventListener('mozfullscreenchange', function() {location.reload();}, false);
document.addEventListener('fullscreenchange', function() {location.reload();}, false);
document.addEventListener('MSFullscreenChange', function() {location.reload();}, false);
//document.addEventListener('webkitfullscreenchange', function() {location.reload();}, false);
//document.addEventListener('mozfullscreenchange', function() {location.reload();}, false);
//document.addEventListener('fullscreenchange', function() {location.reload();}, false);
//document.addEventListener('MSFullscreenChange', function() {location.reload();}, false);
};

CASTORGUI.GUIManager.prototype.addGuiElements = function(elem)
Expand Down

0 comments on commit f36c675

Please sign in to comment.