mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	Resolve #5861
This commit is contained in:
		
							parent
							
								
									169f3ed541
								
							
						
					
					
						commit
						568ecd9477
					
				
					 1 changed files with 0 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -36,19 +36,6 @@ export default Vue.extend({
 | 
			
		|||
 | 
			
		||||
	mixins: [
 | 
			
		||||
		paging({
 | 
			
		||||
			onPrepend: (self, note) => {
 | 
			
		||||
				// タブが非表示なら通知
 | 
			
		||||
				if (document.hidden) {
 | 
			
		||||
					if ('Notification' in window && Notification.permission === 'granted') {
 | 
			
		||||
						new Notification(getUserName(note.user), {
 | 
			
		||||
							body: getNoteSummary(note),
 | 
			
		||||
							icon: note.user.avatarUrl,
 | 
			
		||||
							tag: 'newNote'
 | 
			
		||||
						});
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
			},
 | 
			
		||||
 | 
			
		||||
			before: (self) => {
 | 
			
		||||
				self.$emit('before');
 | 
			
		||||
			},
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue