diff --git a/.~lock.document.odt# b/.~lock.document.odt# index 5209712..4101bee 100644 --- a/.~lock.document.odt# +++ b/.~lock.document.odt# @@ -1 +1 @@ -,mahdi,lab,29.12.2018 14:56,file:///home/mahdi/.config/libreoffice/4; \ No newline at end of file +,mahdi,lab,29.12.2018 14:59,file:///home/mahdi/.config/libreoffice/4; \ No newline at end of file diff --git a/document.odt b/document.odt index 3152fd8..a5baef1 100644 Binary files a/document.odt and b/document.odt differ diff --git a/src/world.js b/src/world.js index 42b42fc..62521ad 100644 --- a/src/world.js +++ b/src/world.js @@ -16,7 +16,7 @@ const app = new WHS.App([ new PHYSICS.WorldModule({ gravity: new THREE.Vector3(0, -100, 0), - ammo: 'http://localhost:8080/lib/ammo.js', + ammo: `${location.protocol}//${location.hostname}${location.pathname}lib/ammo.js`, }), new WHS.RenderingModule({ bgColor: 0x162129 }), // Apply THREE.WebGLRenderer