mirror of
				https://github.com/therootcompany/greenlock.js.git
				synced 2025-10-31 20:12:47 +00:00 
			
		
		
		
	backwards compat
This commit is contained in:
		
							parent
							
								
									39c0047fb6
								
							
						
					
					
						commit
						4c027a3846
					
				| @ -3,7 +3,17 @@ | ||||
| var PromiseA = require('bluebird'); | ||||
| var fs = PromiseA.promisifyAll(require('fs')); | ||||
| 
 | ||||
| module.exports.create = function (defaults, opts) { | ||||
| module.exports.create = function (defaults, opts, extra) { | ||||
|   // v1.0.0 backwards compat
 | ||||
|   if (3 === arguments.length) { | ||||
|     opts.pythonClientPath = defaults; | ||||
|     defaults = opts; | ||||
|     opts = extra; | ||||
|   } | ||||
|   else if (2 !== arguments.length) { | ||||
|     throw new Error("Instead of creating the python backend yourself, just pass it to LE. See the README.md"); | ||||
|   } | ||||
| 
 | ||||
|   defaults.webroot = true; | ||||
|   defaults.renewByDefault = true; | ||||
|   defaults.text = true; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user