Skip to content

Commit

Permalink
Trying in mainPlayer the import
Browse files Browse the repository at this point in the history
  • Loading branch information
eHag-FRU committed Apr 15, 2024
1 parent bb93d87 commit a1f52fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/mainPlayer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if (typeof module !== 'undefined' && module.exports) {
console.log('this script is running in Node.js');
const Room = import('../src/js/Rooms.js');
import('../src/js/Rooms.js').RoomController;
} else {
console.log('this script is not running in Node.js');
}
Expand Down
2 changes: 1 addition & 1 deletion test/testPlayer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const assert = require('assert');
require('../src/js/Rooms.js').RoomController;
const Room = require('../src/js/Rooms.js');
const Player = require('../src/js/mainPlayer.js');


Expand Down

0 comments on commit a1f52fe

Please sign in to comment.