Suppression de la fonction greet inutile
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user