chore(webui): handle index.html being opened as a file (#1329)
Some checks failed
Build Docker image / docker (push) Waiting to run
Build / build (18) (push) Has been cancelled
Build / build (20) (push) Has been cancelled
Build / build (22) (push) Has been cancelled

Reviewed-on: #1329
This commit is contained in:
Sainan 2025-03-25 15:12:20 -07:00
parent 5597bfe876
commit 8221674098

View File

@ -619,5 +619,12 @@
<script src="/webui/riven-tool/RivenParser.js"></script>
<script src="/webui/script.js"></script>
<script src="/webui/libs/bootstrap.bundle.min.js"></script>
<script>
setTimeout(function() {
if (location.protocol == "file:") {
document.write("You can access the WebUI via http://localhost/ when SpaceNinjaServer is running.");
}
}, 1);
</script>
</body>
</html>