Add the correct imports for new session module
This commit is contained in:
parent
403ee2da92
commit
11e33a95bb
2 changed files with 4 additions and 4 deletions
|
@ -9,6 +9,7 @@
|
|||
<script src="i18n.js"></script>
|
||||
<script src="fun.js"></script>
|
||||
<script src="screen.js"></script>
|
||||
<script src="save.js"></script>
|
||||
<script src="messaging.js"></script>
|
||||
<script src="session.js"></script>
|
||||
<script src="room.js"></script>
|
||||
|
|
|
@ -4,12 +4,13 @@ window.addEventListener('load', function() {
|
|||
var translations = Translations();
|
||||
var i18n = I18n({translations: translations});
|
||||
var fun = Fun();
|
||||
var save = Save();
|
||||
var screen = Screen({dom: dom, i18n: i18n});
|
||||
var messaging = Messaging({screen: screen});
|
||||
var session = Session({messaging: messaging});
|
||||
var session = Session({messaging: messaging, save: save});
|
||||
var room = Room({dom: dom, messaging: messaging, session: session, fun: fun});
|
||||
var statusHandler = StatusHandler();
|
||||
var login = Login({dom: dom, i18n: i18n, messaging: messaging, room: room, screen: screen, session: session, statusHandler: statusHandler});
|
||||
var login = Login({dom: dom, i18n: i18n, messaging: messaging, room: room, save: save, screen: screen, session: session, statusHandler: statusHandler});
|
||||
var hanafuda = Hanafuda({fun: fun});
|
||||
var game = Game({async: async, dom: dom, i18n: i18n, fun: fun, hanafuda: hanafuda, messaging: messaging, room: room, screen: screen, session: session, statusHandler: statusHandler});
|
||||
|
||||
|
@ -26,6 +27,4 @@ window.addEventListener('load', function() {
|
|||
default: domElems[key].textContent = i18n.get(key);
|
||||
}
|
||||
}
|
||||
|
||||
messaging.start();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue