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

Merged
Sainan merged 1 commits from webui-file into main 2025-03-25 15:12:21 -07:00

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>