mirror of
https://github.com/godotengine/godot.git
synced 2025-10-21 08:53:35 +00:00
Merge pull request #4376 from eska014/js-eval
Add JavaScript eval interface to web export
This commit is contained in:
commit
5efe47fb0b
6 changed files with 242 additions and 2 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue