There was an error while loading. Please reload this page.
1 parent 3646e2e commit 2cb8906Copy full SHA for 2cb8906
client/index.js
@@ -1,7 +1,7 @@
1
// Here is where we connect to the server and set up our socket listeners
2
var socket = io.connect('');
3
setUpSocketListeners();
4
-socket.emit('handshake', AFRAME.utils.isMobile());
+socket.emit('handshake', (AFRAME.utils.isMobile || AFRAME.utils.device.isMobile)());
5
6
/**
7
* Declare our socket's listeners here.
@@ -129,4 +129,4 @@ function createPlayerCamera() {
129
130
function getOnlineUsers() {
131
this.socket.emit('getOnlineUsers');
132
-}
+}
0 commit comments