move delete
This commit is contained in:
		
							parent
							
								
									3b655720c5
								
							
						
					
					
						commit
						4ca48db78b
					
				| @ -112,9 +112,9 @@ | |||||||
|         var tok; |         var tok; | ||||||
| 
 | 
 | ||||||
|         function cleanup() { |         function cleanup() { | ||||||
|           delete window['--oauth3-callback-' + state]; |  | ||||||
|           clearTimeout(tok); |           clearTimeout(tok); | ||||||
|           tok = null; |           tok = null; | ||||||
|  |           delete window['--oauth3-callback-' + state]; | ||||||
|           // this is last in case the window self-closes synchronously
 |           // this is last in case the window self-closes synchronously
 | ||||||
|           // (should never happen, but that's a negotiable implementation detail)
 |           // (should never happen, but that's a negotiable implementation detail)
 | ||||||
|           if (!opts.reuseWindow) { |           if (!opts.reuseWindow) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user