mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
swapped client files
This commit is contained in:
parent
d73d6b73e1
commit
005fb57c31
2 changed files with 24 additions and 24 deletions
24
client.js
24
client.js
|
|
@ -1,15 +1,11 @@
|
|||
define([
|
||||
"Game/Client/Networker",
|
||||
"Lib/Vendor/SocketIO"
|
||||
],
|
||||
|
||||
function(Networker, SocketIO) {
|
||||
|
||||
function Client(location) {
|
||||
this.socket = SocketIO.connect(location);
|
||||
this.networker = new Networker(socket);
|
||||
}
|
||||
|
||||
return Client;
|
||||
|
||||
requirejs.config({
|
||||
baseUrl: 'app'
|
||||
});
|
||||
|
||||
var inspector = {};
|
||||
|
||||
requirejs(["Bootstrap/Client"], function(Client) {
|
||||
|
||||
var client = new Client(location.href);
|
||||
inspector.client = client;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue