mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	respect following privacy settings
This commit is contained in:
		
							parent
							
								
									ac1e5a0fb5
								
							
						
					
					
						commit
						ca98107eee
					
				
					 1 changed files with 14 additions and 4 deletions
				
			
		| 
						 | 
					@ -630,11 +630,21 @@ async function onPaste(ev: ClipboardEvent) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (paste.length > 1000) {
 | 
						if (paste.length > 1000) {
 | 
				
			||||||
		ev.preventDefault();
 | 
							ev.preventDefault();
 | 
				
			||||||
		os.confirm({
 | 
							os.actions({
 | 
				
			||||||
			type: 'info',
 | 
								type: 'question',
 | 
				
			||||||
			text: i18n.ts.attachAsFileQuestion,
 | 
								text: i18n.ts.attachAsFileQuestion,
 | 
				
			||||||
		}).then(({ canceled }) => {
 | 
								actions: [
 | 
				
			||||||
			if (canceled) {
 | 
									{
 | 
				
			||||||
 | 
										value: 'yes',
 | 
				
			||||||
 | 
										text: i18n.ts.yes,
 | 
				
			||||||
 | 
									},
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										value: 'no',
 | 
				
			||||||
 | 
										text: i18n.ts.no,
 | 
				
			||||||
 | 
									},
 | 
				
			||||||
 | 
								],
 | 
				
			||||||
 | 
							}).then(({ result }) => {
 | 
				
			||||||
 | 
								if (result !== 'yes') {
 | 
				
			||||||
				insertTextAtCursor(textareaEl.value, paste);
 | 
									insertTextAtCursor(textareaEl.value, paste);
 | 
				
			||||||
				return;
 | 
									return;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue