Remove redundant ready() wrapper (#26533)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							1cb978bcc3
						
					
				
				
					commit
					bb51c0676d
				
			@@ -65,7 +65,6 @@ function loaded() {
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  ready(() => {
 | 
			
		||||
  const locale = document.documentElement.lang;
 | 
			
		||||
 | 
			
		||||
  const dateTimeFormat = new Intl.DateTimeFormat(locale, {
 | 
			
		||||
@@ -219,7 +218,7 @@ function loaded() {
 | 
			
		||||
    const message = (statusEl.dataset.spoiler === 'expanded') ? (localeData['status.show_less'] || 'Show less') : (localeData['status.show_more'] || 'Show more');
 | 
			
		||||
    spoilerLink.textContent = (new IntlMessageFormat(message, locale)).format();
 | 
			
		||||
  });
 | 
			
		||||
  });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
delegate(document, '#account_display_name', 'input', ({ target }) => {
 | 
			
		||||
  const name = document.querySelector('.card .display-name strong');
 | 
			
		||||
@@ -344,8 +343,6 @@ function loaded() {
 | 
			
		||||
    }
 | 
			
		||||
  });
 | 
			
		||||
});
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
function main() {
 | 
			
		||||
  ready(loaded);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user