address Infinite Loop
change the default function "static" to "Static"
This commit is contained in:
		
							parent
							
								
									5e0d4bb8e4
								
							
						
					
					
						commit
						5504c61039
					
				
					 2 changed files with 238 additions and 239 deletions
				
			
		|  | @ -390,8 +390,8 @@ export default class windowman { | |||
| 		 | ||||
| 		/* Enable the searching interface. */ | ||||
| 		async function search() { | ||||
| 			const search_GUI_manager = (await import(chrome.runtime.getURL(`scripts/GUI/windowman.search.js`))); | ||||
| 			return (search_GUI_manager.search()); | ||||
| 			const search_GUI_manager = (await import(chrome.runtime.getURL(`scripts/GUI/windowman.search.js`))).default; | ||||
| 			return (search_GUI_manager.Search()); | ||||
| 		}; | ||||
| 
 | ||||
| 		fill(); | ||||
|  |  | |||
|  | @ -1,8 +1,10 @@ | |||
| import {read, write, observe} from "/scripts/secretariat.js"; | ||||
| import {read, write, search, observe} from "/scripts/secretariat.js"; | ||||
| import logging from "/scripts/logging.js" | ||||
| import texts from "/scripts/strings/read.js"; | ||||
| 
 | ||||
| export function search() { | ||||
| 
 | ||||
| export default class UI { | ||||
|      static Search() { | ||||
|           if (document.querySelectorAll(`[data-result]`)) { | ||||
|                /*  | ||||
|                     Display the search result.  | ||||
|  | @ -210,11 +212,7 @@ export function search() { | |||
|                                         .getAttribute(`data-results-filters`) | ||||
|                                         .split(`,`); | ||||
|                               } | ||||
|                          SEARCH[element.getAttribute(`data-result`)][`results`] = await search( | ||||
|                                    element.getAttribute(`data-result`), | ||||
|                                    SEARCH[element.getAttribute(`data-result`)][`criteria`], | ||||
|                                    SEARCH[element.getAttribute(`data-result`)][`additional criteria`], | ||||
|                               ); | ||||
|                               SEARCH[element.getAttribute(`data-result`)][`results`] = await search(element.getAttribute(`data-result`), SEARCH[element.getAttribute(`data-result`)][`criteria`], SEARCH[element.getAttribute(`data-result`)][`additional criteria`]); | ||||
|                          } else { | ||||
|                               SEARCH[element.getAttribute(`data-result`)][`results`] = await read(element.getAttribute(`data-result`)); | ||||
|                          }; | ||||
|  | @ -254,3 +252,4 @@ export function search() { | |||
|                return (SEARCH); | ||||
|           } | ||||
|      } | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue