<script type="importmap">
{
"imports": {
- "three": "/three.module.js",
+ "three": "./three.module.js",
"three/addons/": "./addons/"
}
}
<canvas width="800" height="800"></canvas>
</div>
</div>
-<script type="module" src="/main.js"></script>
+<script type="module" src="main.js"></script>
+<script>
+if(!['https:', 'http:'].includes(window.location.protocol)) {
+ document.querySelectorAll('.game-upintheair .ui-page:not(.loading)').forEach(page => page.remove());
+ document.querySelector('.game-upintheair .loading div').innerText = 'This game cannot run without a web server.';
+}
+</script>
</body>
</html>