mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 17:40:36 +00:00
fixed get_value to be exported by hyperweb
This commit is contained in:
parent
e63feddb7c
commit
0c473559f3
@ -57,7 +57,7 @@ namespace hr {
|
|||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
string get_value(string name) {
|
EX string get_value(string name) {
|
||||||
char *str = (char*)EM_ASM_INT({
|
char *str = (char*)EM_ASM_INT({
|
||||||
var name = UTF8ToString($0, $1);
|
var name = UTF8ToString($0, $1);
|
||||||
var value = document.getElementById(name).value;
|
var value = document.getElementById(name).value;
|
||||||
|
Loading…
Reference in New Issue
Block a user