Skip to content

Commit e5f9496

Browse files
committed
relative event.js require in display.js
1 parent c5788fa commit e5f9496

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/gamejs/display.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,16 @@ var getFullScreenToggle = function() {
9797

9898
var fullScreenChange = function(event) {
9999
var gjsEvent ={
100-
type: isFullScreen() ? require('gamejs/event').DISPLAY_FULLSCREEN_ENABLED :
101-
require('gamejs/event').DISPLAY_FULLSCREEN_DISABLED
100+
type: isFullScreen() ? require('./event').DISPLAY_FULLSCREEN_ENABLED :
101+
require('./event').DISPLAY_FULLSCREEN_DISABLED
102102

103103
};
104104
if (isFullScreen()) {
105105
if (_flags & POINTERLOCK) {
106106
enablePointerLock();
107107
}
108108
}
109-
require('gamejs/event')._triggerCallback(gjsEvent);
109+
require('./event')._triggerCallback(gjsEvent);
110110
};
111111

112112
exports.hasPointerLock = function() {

0 commit comments

Comments
 (0)