mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	
							parent
							
								
									95e1b80f41
								
							
						
					
					
						commit
						af66f0a497
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -480,7 +480,7 @@ export default Vue.extend({
 | 
				
			||||||
			});
 | 
								});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if (this.text && this.text != '') {
 | 
								if (this.text && this.text != '') {
 | 
				
			||||||
				const hashtags = parse(this.text).filter(x => x.type == 'hashtag').map(x => x.hashtag);
 | 
									const hashtags = parse(this.text).filter(x => x.node.type === 'hashtag').map(x => x.node.props.hashtag);
 | 
				
			||||||
				const history = JSON.parse(localStorage.getItem('hashtags') || '[]') as string[];
 | 
									const history = JSON.parse(localStorage.getItem('hashtags') || '[]') as string[];
 | 
				
			||||||
				localStorage.setItem('hashtags', JSON.stringify(unique(hashtags.concat(history))));
 | 
									localStorage.setItem('hashtags', JSON.stringify(unique(hashtags.concat(history))));
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -367,7 +367,7 @@ export default Vue.extend({
 | 
				
			||||||
			});
 | 
								});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if (this.text && this.text != '') {
 | 
								if (this.text && this.text != '') {
 | 
				
			||||||
				const hashtags = parse(this.text).filter(x => x.type == 'hashtag').map(x => x.hashtag);
 | 
									const hashtags = parse(this.text).filter(x => x.node.type === 'hashtag').map(x => x.node.props.hashtag);
 | 
				
			||||||
				const history = JSON.parse(localStorage.getItem('hashtags') || '[]') as string[];
 | 
									const history = JSON.parse(localStorage.getItem('hashtags') || '[]') as string[];
 | 
				
			||||||
				localStorage.setItem('hashtags', JSON.stringify(unique(hashtags.concat(history))));
 | 
									localStorage.setItem('hashtags', JSON.stringify(unique(hashtags.concat(history))));
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue