Suppression de la fonction greet inutile
parent
55c2e4a0c3
commit
cdc350f260
|
|
@ -3,14 +3,13 @@
|
|||
<meta charset="utf-8"/>
|
||||
<title>Kikikoz</title>
|
||||
<script type="module">
|
||||
import {default as init, greet, ajoute, next} from './pkg/kikikoz.js';
|
||||
import {default as init, ajoute, next} from './pkg/kikikoz.js';
|
||||
|
||||
async function run() {
|
||||
await init()
|
||||
}
|
||||
|
||||
run()
|
||||
window.greet = greet;
|
||||
window.ajoute = ajoute;
|
||||
window.next = next;
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -16,11 +16,6 @@ extern {
|
|||
fn alert(s: &str);
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn greet() {
|
||||
alert("Hello, kikikoz!");
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn next() {
|
||||
let window = web_sys::window().expect("no global `window` exists");
|
||||
|
|
|
|||
Loading…
Reference in New Issue