mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	fix failure of RED.require
This commit is contained in:
		| @@ -14,7 +14,9 @@ | ||||
|  * limitations under the License. | ||||
|  **/ | ||||
|  | ||||
| var path = require("path"); | ||||
| var i18n = require("@node-red/util").i18n; | ||||
| var registry; | ||||
| var runtime; | ||||
|  | ||||
| function copyObjectProperties(src,dst,copyList,blockList) { | ||||
| @@ -105,6 +107,7 @@ function createNodeApi(node) { | ||||
| module.exports = { | ||||
|     init: function(_runtime) { | ||||
|         runtime = _runtime; | ||||
|         registry = require("@node-red/registry/lib"); | ||||
|     }, | ||||
|     createNodeApi: createNodeApi | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user