mirror of
				https://github.com/Alamantus/Lexiconga.git
				synced 2025-11-04 10:17:01 +01:00 
			
		
		
		
	Don't consider theme when checking if default
This commit is contained in:
		
							parent
							
								
									48239809a5
								
							
						
					
					
						commit
						4fc8cec5e3
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -9,10 +9,12 @@ export function saveToken(token) {
 | 
			
		|||
 | 
			
		||||
export function dictionaryIsDefault() {
 | 
			
		||||
  const defaultDictionary = cloneObject(DEFAULT_DICTIONARY);
 | 
			
		||||
  delete defaultDictionary.settings.theme;
 | 
			
		||||
  delete defaultDictionary.lastUpdated;
 | 
			
		||||
  delete defaultDictionary.createdOn;
 | 
			
		||||
  delete defaultDictionary.version;
 | 
			
		||||
  const currentDictionary = cloneObject(window.currentDictionary);
 | 
			
		||||
  delete currentDictionary.settings.theme;
 | 
			
		||||
  delete currentDictionary.lastUpdated;
 | 
			
		||||
  delete currentDictionary.createdOn;
 | 
			
		||||
  delete currentDictionary.version;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue