Fix WebUI crash when processing accounts before page is loaded (#14015)
This commit is contained in:
		
					parent
					
						
							
								6b6a9d0ea3
							
						
					
				
			
			
				commit
				
					
						cc6b8a9615
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -11,7 +11,7 @@ const darkEmoji = '🎱🐜⚫🖤⬛◼️◾◼️✒️▪️💣🎳📷📸 | ||||||
| const lightEmoji = '👽⚾🐔☁️💨🕊️👀🍥👻🐐❕❔⛸️🌩️🔊🔇📃🌧️🐏🍚🍙🐓🐑💀☠️🌨️🔉🔈💬💭🏐🏳️⚪⬜◽◻️▫️'; | const lightEmoji = '👽⚾🐔☁️💨🕊️👀🍥👻🐐❕❔⛸️🌩️🔊🔇📃🌧️🐏🍚🍙🐓🐑💀☠️🌨️🔉🔈💬💭🏐🏳️⚪⬜◽◻️▫️'; | ||||||
| 
 | 
 | ||||||
| const emojiFilename = (filename, match) => { | const emojiFilename = (filename, match) => { | ||||||
|   const borderedEmoji = document.body.classList.contains('theme-mastodon-light') ? lightEmoji : darkEmoji; |   const borderedEmoji = (document.body && document.body.classList.contains('theme-mastodon-light')) ? lightEmoji : darkEmoji; | ||||||
|   return borderedEmoji.includes(match) ? (filename + '_border') : filename; |   return borderedEmoji.includes(match) ? (filename + '_border') : filename; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue