diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-05-25 14:51:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 14:51:02 +0200 |
commit | 5f8888c4454f9966ce1f40cf08ff2d881470e9ed (patch) | |
tree | 072126785fa039ec994754e156e956a02370e8d8 /editor/editor_node.cpp | |
parent | 971daadfa09bbbd890fab7b38edbea33a74c5c8d (diff) | |
parent | 3ff6d794c0aac0365f236cd078b5e5aeea0d996e (diff) | |
download | redot-engine-5f8888c4454f9966ce1f40cf08ff2d881470e9ed.tar.gz |
Merge pull request #61402 from akien-mga/html5-enable-mbedtls
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 4998cc82e8..c59c7de603 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -7025,11 +7025,15 @@ EditorNode::EditorNode() { ScriptTextEditor::register_editor(); // Register one for text scripts. TextEditor::register_editor(); + // Asset Library can't work on Web editor for now as most assets are sourced + // directly from GitHub which does not set CORS. +#ifndef JAVASCRIPT_ENABLED if (StreamPeerSSL::is_available()) { add_editor_plugin(memnew(AssetLibraryEditorPlugin)); } else { WARN_PRINT("Asset Library not available, as it requires SSL to work."); } +#endif // Add interface before adding plugins. |