mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +00:00 
			
		
		
		
	since FF impulitely complains when we are asking permission pulitely, we are not longer asking for permission, it's quieter this way...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									1b98cddc2a
								
							
						
					
					
						commit
						14b3d7aed7
					
				| @ -3338,12 +3338,11 @@ var BrowserPrototype = { | |||||||
| 				: this.load(str)  | 				: this.load(str)  | ||||||
| 		}.bind(this), 5) | 		}.bind(this), 5) | ||||||
| 	}, | 	}, | ||||||
|  | 	// NOTE: FF does not support permission querying so we are not asking,
 | ||||||
|  | 	// 		yes this may result in things breaking, but all the shards 
 | ||||||
|  | 	// 		should be contained within the handler...
 | ||||||
| 	__copy: function(text){ | 	__copy: function(text){ | ||||||
| 		navigator.permissions.query({name: 'clipboard-write'}) | 		navigator.clipboard.writeText(text || this.path) }, | ||||||
| 			.then(function({state}){ |  | ||||||
| 				;(state == 'granted' || state == 'prompt' ) ? |  | ||||||
| 					navigator.clipboard.writeText(text || this.path)  |  | ||||||
| 					: console.warn('.__copy(..): clipboard-write not allowed.') }) }, |  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 	// Element renderers...
 | 	// Element renderers...
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user