From a7943c725a50abd5b572e683ccaf1f18b49ad116 Mon Sep 17 00:00:00 2001 From: Matthew Andres Moreno Date: Thu, 18 Apr 2024 14:29:35 -0400 Subject: [PATCH] Replace call to JQuery .css() --- include/emp/web/Style.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/emp/web/Style.hpp b/include/emp/web/Style.hpp index e7a5fa3e4..557b12d13 100644 --- a/include/emp/web/Style.hpp +++ b/include/emp/web/Style.hpp @@ -122,7 +122,7 @@ namespace web { MAIN_THREAD_EM_ASM({ var name = UTF8ToString($0); var value = UTF8ToString($1); - emp_i.cur_obj.css( name, value); + emp_i.cur_obj.style[name] = value; }, css_pair.first.c_str(), css_pair.second.c_str()); #else std::cout << "Setting '" << widget_id << "' attribute '" << css_pair.first