increase timeouts when debugging
This commit is contained in:
		
							parent
							
								
									7de254d597
								
							
						
					
					
						commit
						834c41e0d1
					
				| @ -138,6 +138,9 @@ | |||||||
| 
 | 
 | ||||||
|   , insertIframe: function (url, state, opts) { |   , insertIframe: function (url, state, opts) { | ||||||
|       opts = opts || {}; |       opts = opts || {}; | ||||||
|  |       if (opts.debug) { | ||||||
|  |         opts.timeout = opts.timeout || 15 * 60 * 1000; | ||||||
|  |       } | ||||||
|       var promise = new OAUTH3.PromiseA(function (resolve, reject) { |       var promise = new OAUTH3.PromiseA(function (resolve, reject) { | ||||||
|         var tok; |         var tok; | ||||||
|         var iframeDiv; |         var iframeDiv; | ||||||
| @ -181,6 +184,9 @@ | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|   , openWindow: function (url, state, opts) { |   , openWindow: function (url, state, opts) { | ||||||
|  |       if (opts.debug) { | ||||||
|  |         opts.timeout = opts.timeout || 15 * 60 * 1000; | ||||||
|  |       } | ||||||
|       var promise = new OAUTH3.PromiseA(function (resolve, reject) { |       var promise = new OAUTH3.PromiseA(function (resolve, reject) { | ||||||
|         var tok; |         var tok; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user