Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit c594b85

Browse files
committed
Wrong call to React library
1 parent b3b2464 commit c594b85

File tree

1 file changed

+3
-1
lines changed
  • core/src/plugins/gui.ajax/res/themes/orbit/html

1 file changed

+3
-1
lines changed

core/src/plugins/gui.ajax/res/themes/orbit/html/gui.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
var ajaxplorer, startParameters = {}, MessageHash={};
2424
//AJXP_JSON_START_PARAMETERS
2525
document.observe("ajaxplorer:before_gui_load", function(e){
26-
React.initializeTouchEvents(true);
26+
if(window.React){
27+
React.initializeTouchEvents(true);
28+
}
2729
ajaxplorer.currentThemeUsesIconFonts = true;
2830
pydio.Parameters.set('currentThemeUsesIconFonts', true);
2931
document.documentElement.className += " ajxp_theme_orbit";

0 commit comments

Comments
 (0)