bugfix
This commit is contained in:
		
							parent
							
								
									5d72549bb7
								
							
						
					
					
						commit
						b9964685f9
					
				@ -307,8 +307,6 @@ const sortedTags = Object.entries(tagFrequency)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<script define:vars={{ toolsData: data.tools, tagFrequency, sortedTags }}>
 | 
					<script define:vars={{ toolsData: data.tools, tagFrequency, sortedTags }}>
 | 
				
			||||||
  window.toolsData = toolsData;  
 | 
					  window.toolsData = toolsData;  
 | 
				
			||||||
  import { isToolHosted } from "../utils/clientUtils.js";
 | 
					 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  document.addEventListener('DOMContentLoaded', () => {
 | 
					  document.addEventListener('DOMContentLoaded', () => {
 | 
				
			||||||
    const elements = {
 | 
					    const elements = {
 | 
				
			||||||
      searchInput: document.getElementById('search-input'),
 | 
					      searchInput: document.getElementById('search-input'),
 | 
				
			||||||
@ -395,6 +393,13 @@ const sortedTags = Object.entries(tagFrequency)
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    function isToolHosted(tool) {
 | 
				
			||||||
 | 
					      return tool.projectUrl !== undefined && 
 | 
				
			||||||
 | 
					            tool.projectUrl !== null && 
 | 
				
			||||||
 | 
					            tool.projectUrl !== "" && 
 | 
				
			||||||
 | 
					            tool.projectUrl.trim() !== "";
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
    function toggleCollapsible(toggleBtn, content, storageKey) {
 | 
					    function toggleCollapsible(toggleBtn, content, storageKey) {
 | 
				
			||||||
      const isCollapsed = toggleBtn.getAttribute('data-collapsed') === 'true';
 | 
					      const isCollapsed = toggleBtn.getAttribute('data-collapsed') === 'true';
 | 
				
			||||||
      const newState = !isCollapsed;
 | 
					      const newState = !isCollapsed;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user