You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-02 19:01:36 +00:00
Add JavaScript eval interface
This commit is contained in:
@@ -230,6 +230,11 @@ void OS_JavaScript::initialize(const VideoMode& p_desired,int p_video_driver,int
|
||||
if (result!=EMSCRIPTEN_RESULT_SUCCESS) {
|
||||
ERR_PRINTS( "Error while setting Emscripten gamepaddisconnected callback: Code " + itos(result) );
|
||||
}
|
||||
|
||||
#ifdef JAVASCRIPT_EVAL_ENABLED
|
||||
javascript_eval = memnew(JavaScript);
|
||||
Globals::get_singleton()->add_singleton(Globals::Singleton("JavaScript", javascript_eval));
|
||||
#endif
|
||||
}
|
||||
|
||||
void OS_JavaScript::set_main_loop( MainLoop * p_main_loop ) {
|
||||
|
||||
Reference in New Issue
Block a user