Embed wasm file, login on enter

This commit is contained in:
2021-08-12 15:48:02 +02:00
committed by dietrich
parent 51276d3831
commit fe1556b099
3 changed files with 12 additions and 8 deletions
+2 -2
View File
@@ -96,8 +96,8 @@ pub async fn wasm_app(config: web::Data<crate::ServerConfig>) -> Result<HttpResp
<body>
<section id="app"><div class="lds-ellipsis">Loading: <div></div><div></div><div></div><div></div></div></section>
<script type="module">
import init from '/app/pkg/app.js';
init('/app/pkg/app_bg.wasm');
import init from '/static/wasm/app.js';
init('/static/wasm/app_bg.wasm');
</script>
</body>
</html>"#,