1
0
Fork 0
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:
Henrik Hautakoski 2020-01-02 22:13:06 +01:00
parent c5d184334e
commit dfda5cac24

View file

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