Skip to content

Commit

Permalink
Replace call to JQuery .css()
Browse files Browse the repository at this point in the history
  • Loading branch information
mmore500 committed Apr 18, 2024
1 parent b8f813c commit a7943c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/emp/web/Style.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7943c7

Please sign in to comment.