mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	prevent exception if ace is missing
This commit is contained in:
		@@ -711,7 +711,7 @@ var RED = (function() {
 | 
			
		||||
            throw new Error("RED already initialised");
 | 
			
		||||
        }
 | 
			
		||||
        initialised = true;
 | 
			
		||||
        ace.require("ace/ext/language_tools");
 | 
			
		||||
        if(window.ace) { window.ace.require("ace/ext/language_tools"); }
 | 
			
		||||
        options = options || {};
 | 
			
		||||
        options.apiRootUrl = options.apiRootUrl || "";
 | 
			
		||||
        if (options.apiRootUrl && !/\/$/.test(options.apiRootUrl)) {
 | 
			
		||||
 
 | 
			
		||||
@@ -2850,7 +2850,7 @@ var buildingEditDialog = false;
 | 
			
		||||
 | 
			
		||||
    return {
 | 
			
		||||
        init: function() {
 | 
			
		||||
            ace.config.set('basePath', 'vendor/ace');
 | 
			
		||||
            if(window.ace) { window.ace.config.set('basePath', 'vendor/ace'); }
 | 
			
		||||
            RED.tray.init();
 | 
			
		||||
            RED.actions.add("core:confirm-edit-tray", function() {
 | 
			
		||||
                $(document.activeElement).blur();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user