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"/> <meta charset="utf-8"/>
<title>Kikikoz</title> <title>Kikikoz</title>
<script type="module"> <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() { async function run() {
await init() await init()
} }
run() run()
window.greet = greet;
window.ajoute = ajoute; window.ajoute = ajoute;
window.next = next; window.next = next;
</script> </script>

View File

@ -16,11 +16,6 @@ extern {
fn alert(s: &str); fn alert(s: &str);
} }
#[wasm_bindgen]
pub fn greet() {
alert("Hello, kikikoz!");
}
#[wasm_bindgen] #[wasm_bindgen]
pub fn next() { pub fn next() {
let window = web_sys::window().expect("no global `window` exists"); let window = web_sys::window().expect("no global `window` exists");