Suppression de la fonction greet inutile

master
Florent Becker 2020-10-08 00:18:56 +02:00
parent 55c2e4a0c3
commit cdc350f260
2 changed files with 1 additions and 7 deletions

View File

@ -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>

View File

@ -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");