script_bridge.rs, index.js
This commit is contained in:
parent
a58ea4fba5
commit
a299ae1082
5 changed files with 33 additions and 1 deletions
2
backend/index.js
Normal file
2
backend/index.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
import { FW } from '/_api/pkg/frontend.js';
|
||||
window.FW = FW;
|
|
@ -5,6 +5,10 @@ async fn frontend() -> Frontend {
|
|||
"<style>",
|
||||
include_str!("../style.css"),
|
||||
"</style>"
|
||||
)).append_to_head(concat!(
|
||||
"<script type=\"module\">",
|
||||
include_str!("../index.js"),
|
||||
"</script>"
|
||||
))
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue