From 10529af23615bfb7bbea0a39898104c04f379620 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 1 Jun 2019 17:03:16 +0200 Subject: [PATCH] web:: changed Pointer_stringify to UTF8ToString as suggested --- hyperweb.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hyperweb.cpp b/hyperweb.cpp index 20a7f962..f071c5cd 100644 --- a/hyperweb.cpp +++ b/hyperweb.cpp @@ -48,10 +48,12 @@ namespace hr { void open_url(string s) { EM_ASM_({ - window.open(Pointer_stringify($0)); + window.open(UTF8ToString($0, 1000)); }, s.c_str()); } + +// window.open(Pointer_stringify($0)); bool demoanim; void toggleanim(bool v) {