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. */
|
/* Enable the searching interface. */
|
||||||
async function search() {
|
async function search() {
|
||||||
const search_GUI_manager = (await import(chrome.runtime.getURL(`scripts/GUI/windowman.search.js`)));
|
const search_GUI_manager = (await import(chrome.runtime.getURL(`scripts/GUI/windowman.search.js`))).default;
|
||||||
return (search_GUI_manager.search());
|
return (search_GUI_manager.Search());
|
||||||
};
|
};
|
||||||
|
|
||||||
fill();
|
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 logging from "/scripts/logging.js"
|
||||||
import texts from "/scripts/strings/read.js";
|
import texts from "/scripts/strings/read.js";
|
||||||
|
|
||||||
export function search() {
|
|
||||||
|
export default class UI {
|
||||||
|
static Search() {
|
||||||
if (document.querySelectorAll(`[data-result]`)) {
|
if (document.querySelectorAll(`[data-result]`)) {
|
||||||
/*
|
/*
|
||||||
Display the search result.
|
Display the search result.
|
||||||
|
@ -210,11 +212,7 @@ export function search() {
|
||||||
.getAttribute(`data-results-filters`)
|
.getAttribute(`data-results-filters`)
|
||||||
.split(`,`);
|
.split(`,`);
|
||||||
}
|
}
|
||||||
SEARCH[element.getAttribute(`data-result`)][`results`] = await search(
|
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`]);
|
||||||
element.getAttribute(`data-result`),
|
|
||||||
SEARCH[element.getAttribute(`data-result`)][`criteria`],
|
|
||||||
SEARCH[element.getAttribute(`data-result`)][`additional criteria`],
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
SEARCH[element.getAttribute(`data-result`)][`results`] = await read(element.getAttribute(`data-result`));
|
SEARCH[element.getAttribute(`data-result`)][`results`] = await read(element.getAttribute(`data-result`));
|
||||||
};
|
};
|
||||||
|
@ -254,3 +252,4 @@ export function search() {
|
||||||
return (SEARCH);
|
return (SEARCH);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue