chore(webui): handle index.html being opened as a file (#1329)
Reviewed-on: OpenWF/SpaceNinjaServer#1329
This commit is contained in:
parent
5597bfe876
commit
8221674098
@ -619,5 +619,12 @@
|
|||||||
<script src="/webui/riven-tool/RivenParser.js"></script>
|
<script src="/webui/riven-tool/RivenParser.js"></script>
|
||||||
<script src="/webui/script.js"></script>
|
<script src="/webui/script.js"></script>
|
||||||
<script src="/webui/libs/bootstrap.bundle.min.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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user