1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

fixed get_value to be exported by hyperweb

This commit is contained in:
Zeno Rogue 2023-04-15 01:19:34 +02:00
parent e63feddb7c
commit 0c473559f3

View File

@ -57,7 +57,7 @@ namespace hr {
namespace hr {
string get_value(string name) {
EX string get_value(string name) {
char *str = (char*)EM_ASM_INT({
var name = UTF8ToString($0, $1);
var value = document.getElementById(name).value;