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

Reviewed-on: OpenWF/SpaceNinjaServer#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>