XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

chore(webui): handle index.html being opened as a file (#1329)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1329

82216740
Sainan <sainan@calamity.inc>
提交于

代码差异

1 个文件 +7 -0
Modified static/webui/index.html +7 -0
@@ -619,5 +619,12 @@
619 619 <script src="/webui/riven-tool/RivenParser.js"></script>
620 620 <script src="/webui/script.js"></script>
621 621 <script src="/webui/libs/bootstrap.bundle.min.js"></script>
622 <script>
623 setTimeout(function() {
624 if (location.protocol == "file:") {
625 document.write("You can access the WebUI via http://localhost/ when SpaceNinjaServer is running.");
626 }
627 }, 1);
628 </script>
622 629 </body>
623 630 </html>