1 parent c5788fa commit e5f9496Copy full SHA for e5f9496
1 file changed
lib/gamejs/display.js
@@ -97,16 +97,16 @@ var getFullScreenToggle = function() {
97
98
var fullScreenChange = function(event) {
99
var gjsEvent ={
100
- type: isFullScreen() ? require('gamejs/event').DISPLAY_FULLSCREEN_ENABLED :
101
- require('gamejs/event').DISPLAY_FULLSCREEN_DISABLED
+ type: isFullScreen() ? require('./event').DISPLAY_FULLSCREEN_ENABLED :
+ require('./event').DISPLAY_FULLSCREEN_DISABLED
102
103
};
104
if (isFullScreen()) {
105
if (_flags & POINTERLOCK) {
106
enablePointerLock();
107
}
108
109
- require('gamejs/event')._triggerCallback(gjsEvent);
+ require('./event')._triggerCallback(gjsEvent);
110
111
112
exports.hasPointerLock = function() {
0 commit comments