diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 904d54a1..8c16f0ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: ref: 'gh-pages' persist-credentials: false - name: Download build - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4.1.7 with: name: test_picture - name: Create commits diff --git a/lib/index.js b/lib/index.js index 106ab342..3489e6a1 100644 --- a/lib/index.js +++ b/lib/index.js @@ -7,7 +7,9 @@ require('three/examples/js/controls/OrbitControls') const { Viewer, Entity } = require('../viewer') const io = require('socket.io-client') -const socket = io() +const socket = io({ + path: window.location.pathname + 'socket.io' +}) let firstPositionUpdate = true