mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-03 11:53:41 +02:00
template/wasm_example.html: add code to call eosio_keygen()
This commit is contained in:
parent
c5d184334e
commit
dfda5cac24
1 changed files with 11 additions and 0 deletions
|
|
@ -6,5 +6,16 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script type="text/javascript" src="eosio-keygen.js"></script>
|
<script type="text/javascript" src="eosio-keygen.js"></script>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
// Wait for module to load
|
||||||
|
Module.onRuntimeInitialized = async _ => {
|
||||||
|
// Declare a variable to the function.
|
||||||
|
let eosio_keygen = Module['eosio_keygen'];
|
||||||
|
|
||||||
|
// Call it!
|
||||||
|
console.log(eosio_keygen());
|
||||||
|
};
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue